Skip to content

Instantly share code, notes, and snippets.

@aussiegeek
Created September 26, 2010 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aussiegeek/597569 to your computer and use it in GitHub Desktop.
Save aussiegeek/597569 to your computer and use it in GitHub Desktop.
#!/bin/sh
export AWS_ACCESS_KEY_ID="<s3 access id>"
export AWS_SECRET_ACCESS_KEY="<s3 secret access key>"
export PASSPHRASE="" #left blank intentionally
export DEST="s3+http://<backup bucket name>/"
export SRC="<local src path>"
export GPG_KEY="<e-mail address of gpg key>"
duplicity --encrypt-key $GPG_KEY --full-if-older-than 1M $SRC $DEST
duplicity remove-older-than 1Y $DEST --force
duplicity cleanup $DEST --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment