Skip to content

Instantly share code, notes, and snippets.

@waltervargas
Last active September 26, 2018 22:31
Show Gist options
  • Save waltervargas/256a0d5937caa8bd9fcecc923a2f4df6 to your computer and use it in GitHub Desktop.
Save waltervargas/256a0d5937caa8bd9fcecc923a2f4df6 to your computer and use it in GitHub Desktop.
duplicity backup to s3
#!/bin/sh
HOSTNAME=$(hostname)
BUCKET="walterve-devops"
PREFIX="backups/${HOSTNAME}"
duplicity full \
--verbosity info \
--s3-use-new-style \
--s3-use-multiprocessing \
--s3-european-buckets \
--s3-unencrypted-connection \
--progress \
--log-file ${HOME}/.duplicity/s3.log \
"${HOME}" "s3+http://${BUCKET}/${PREFIX}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment