Skip to content

Instantly share code, notes, and snippets.

@ralt
Created November 10, 2015 08:37
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 ralt/55c8444ee3df10bc5703 to your computer and use it in GitHub Desktop.
Save ralt/55c8444ee3df10bc5703 to your computer and use it in GitHub Desktop.
Duplicity backups on S3
export PASSPHRASE="REALLY COMPLICATED PASSWORD :)"
REM_IF_OLDER="54W"
FULL_IF_OLDER="8W"
ORIG_DIR=/home/foo/Backup
BACKUP_DIR=s3://s3-eu-west-1.amazonaws.com/foo/bar
duplicity --s3-use-new-style --force --s3-european-buckets remove-older-than $REM_IF_OLDER $BACKUP_DIR
duplicity --s3-use-new-style --s3-european-buckets --full-if-older-than $FULL_IF_OLDER \
--exclude /home/foo/Backup/Dotfiles/gnupg/random_seed \
$ORIG_DIR $BACKUP_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment