duplicity
encrypted bandwidth-efficient backup tool
TLDR
Backup a directory to remote location
SYNOPSIS
duplicity [options] source destination
DESCRIPTION
duplicity is a backup tool that creates encrypted, bandwidth-efficient backups. It uses librsync to produce incremental archives that only contain changed parts of files, and GnuPG for encryption and signing.
Backups can be stored locally or on various remote backends including SFTP, S3, Google Cloud Storage, Azure, WebDAV, and many others. The combination of encryption and incremental transfers makes duplicity suitable for remote/cloud backups over untrusted networks.
A full backup is periodically created, with subsequent incremental backups storing only changes. This allows point-in-time recovery while minimizing storage and bandwidth usage.
PARAMETERS
full
Force a full backup.incremental
Force incremental backup.restore
Restore from backup.verify
Verify backup integrity.list-current-files
List files in current backup.remove-older-than time
Delete old backup sets.remove-all-but-n-full n
Keep only n full backups.--full-if-older-than time
Full backup if last one is older than time.--encrypt-key keyid_
GPG key for encryption.--sign-key keyid_
GPG key for signing.--no-encryption
Disable encryption.--include pattern
Include files matching pattern.--exclude pattern
Exclude files matching pattern.--file-to-restore path
Restore specific file.-t time, --restore-time time
Restore from specific time.
CAVEATS
GPG passphrase required for encrypted backups (use PASSPHRASE env var for scripting). First backup is always full and may take time. Restoring individual files requires downloading multiple increments. Backend credentials may need configuration.
HISTORY
duplicity was created by Ben Escoto in 2002 as an encrypted backup solution. It combined rsync's efficient delta-transfer algorithm with GnuPG encryption. The project has been maintained by various contributors and expanded to support numerous cloud storage backends. It remains a popular choice for secure, automated backups.
SEE ALSO
rdiff-backup(1), rsync(1), gpg(1), restic(1)
