Updated: 21 March 2024
Backup to a USB thumbdrive
export PASSPHRASE=mypassphrase
duplicity --exclude ~/MyFiles/music ~/MyFiles file:///media/chris/ThumbDrive
unset PASSPHRASE
Verify backup and show any new differences
export PASSPHRASE=mypassphrase
duplicity verify --verbosity 4 --compare-data --exclude ~/MyFiles/music file:///media/chris/ThumbDrive ~/MyFiles
unset PASSPHRASE
Restore to a new location
export PASSPHRASE=mypassphrase
duplicity file:///media/chris/ThumbDrive ~/Desktop/my-restore
unset PASSPHRASE
Restore one folder to a new location
duplicity --file-to-restore dir_to_restore file:///media/my_backup ~/Desktop/restore_here
Cache files are located at ~/.cache/duplicity
List files in backup
duplicity list-current-files file:///media/the_backup_dir