duplicity Command Examples

Create incremental, compressed, encrypted and versioned backups. Can also upload the backups to a variety of backend services. It is worth mentioning that depending on the version, some options may not be available (e.g. --gio in 2.0.0). More information: http://duplicity.nongnu.org.

FTP_PASSWORD={{ftp_login_password}} PASSPHRASE={{encryption_password}} duplicity {{path/to/source/directory}} {{ftps://user@hostname/target/directory/path/}}

duplicity --full-if-older-than {{1M}} s3://{{bucket_name[/prefix]}}

FTP_PASSWORD={{webdav_login_password}} duplicity remove-older-than {{1Y}} --force {{webdav[s]://user@hostname[:port]/some_dir}}

duplicity collection-status "file://{{absolute/path/to/backup/directory}}"

duplicity list-current-files --time {{YYYY-MM-DD}} scp://{{user@hostname}}/{{path/to/backup/dir}}

PASSPHRASE={{gpg_key_password}} duplicity restore --encrypt-key {{gpg_key_id}} --path-to-restore {{relative/path/restoredirectory}} file://{{absolute/path/to/backup/directory}} {{path/to/directory/to/restore/to}}