Skip to content

Instantly share code, notes, and snippets.

@pedromadureira000
Last active September 6, 2022 17:47
Show Gist options
  • Save pedromadureira000/4fa87939d3b750d1a07baf0316b222a7 to your computer and use it in GitHub Desktop.
Save pedromadureira000/4fa87939d3b750d1a07baf0316b222a7 to your computer and use it in GitHub Desktop.
Duplicity Backup

Installation

  • Python-pydrive = google drive
  • ncftp = alternative backend for ftp
  • lftp = backend for ftp, ftps, fish
yay -S duplicity ncftp python-pydrive lftp 

Help

duplicity --help | more 

Local Backup

duplicity /path/folder_from file:///path/folder_to

Deleting old backups

  • -v9 = verbose mode
  • It is not possible to do a backup (full or incremental) and delete old files with the same command.
duplicity remove-older-than 29D -v9 --force ftp://user:pass@yourdomain.com/folder

Remote Backup

duplicity /home/user/folder_from ftp://user:pass@yourdomain.com/folder_to

Restore Remote Backup

  • It will ask for the GnuPG passphrase for decryption
duplicity ftp://user:pass@yourdomain.com/folder_from /home/user/folder_to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment