Advertisement
J2897

[Cygwin] Duplicity - Backup

Feb 11th, 2016
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. #!/bin/bash
  2. ulimit -n 1024
  3.  
  4. # First run creates a full backup, and incremental backups thereafter.
  5. # Install 'duplicity' and 'gnupg' in Cygwin...
  6. # https://lowendbox.com/blog/encrypted-backups-with-duplicity/
  7. SOURCE="$(cygpath "$USERPROFILE\source")"
  8. DEST="file://$(cygpath "J:\dest")"
  9. export PASSPHRASE=qZSt3rigV0wDW9t43BtpAQC066F
  10. export SIGN_PASSPHRASE=$PASSPHRASE
  11. duplicity --encrypt-key=012EE35A --sign-key=012EE35A $SOURCE $DEST
  12. unset PASSPHRASE
  13. unset SIGN_PASSPHRASE
  14. unset SOURCE
  15. unset DEST
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement