commands.txt 859 B

123456789101112131415161718192021222324
  1. #gen key
  2. gpg --gen-key
  3. #backup without key
  4. duplicity ./demo sftp://andrea@demo/backups/demo/
  5. #backup with key
  6. duplicity --encrypt-key 05AB3DF5 ./demo sftp://andrea@demo/backups/demo/
  7. #force full backup
  8. duplicity full --encrypt-key 05AB3DF5 ./demo sftp://andrea@demo/backups/demo/
  9. #list current files
  10. duplicity list-current-files --encrypt-key 2E4D26D1 sftp://andrea@demo/backups/demo
  11. #see collection status
  12. #restore
  13. duplicity --encrypt-key 05AB3DF5 sftp://andrea@demo/backups/demo/ ./restore
  14. #crontab example
  15. 0 21 * * 1-6 duplicity --encrypt-key XXXX /home/andrea/code/demo sftp://andrea@demo/backups/demo
  16. 0 21 * * 7 duplicity full --encrypt-key XXXX /home/andrea/code/demo sftp://andrea@demo/backups/demo
  17. 30 20 * * 7 duplicity --encrypt-key 05AB3DF5 remove-older-than 90D sftp://andrea@demo/backups/demo
  18. #tell what is a signing key and cite anacron