Encrypted Incremental Backups with duplicity
Create GPG-encrypted, incremental backups of your folders to a local disk or remote storage, and verify that the backup restores correctly.
01Command
$ duplicity --encrypt-key YOUR_GPG_KEY_ID ~/Documents file:///mnt/backup/docs && duplicity --encrypt-key YOUR_GPG_KEY_ID --verify file:///mnt/backup/docs ~/Documents02What it does
Duplicity encrypts every backup volume with GnuPG before it leaves your machine, so data is unreadable on the destination — important for USB drives, network shares or cloud storage you don't fully trust. Backups are incremental: only changed data transfers after the first run, making repeated runs fast. Verification with --verify is the step most people skip; it restores and compares the files so you know the archive is actually usable before you need it.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Duplicity — Debian WikiEvidence: Debian's documentation on using duplicity for encrypted incremental backups, including GPG key setup and restore examples.
- duplicity(1) — Linux manual pageEvidence: Duplicity produces encrypted tar-format volumes with GnuPG and uploads them to local or remote backends; --encrypt-key selects the key, --verify compares restored files against the source.
Last verified: 2026-09-18 · Category: Security & Privacy
06Related solutions
rsync copies over SSH, skips unchanged files, resumes interrupted transfers, and preserves permissions and timestamps.
Generate a modern Ed25519 public/private key pair in ~/.ssh for authenticating to servers and Git platforms without passwords.
Add or remove read, write, and execute permission for the owner, group, or others using symbolic or octal modes.