Created
September 26, 2010 03:29
-
-
Save aussiegeek/597569 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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