How to restore a duplicity backup from a certain date

backupbackup-restorationduplicityincremental-backup

Is it possible to restore a duplicity backup from a certain time in the past?

For example, if I'm making daily incremental backups, is there a way to restore a backup from three days ago?

Best Answer

The -t argument will tell duplicity from what time to restore.

duplicity -t 3D --file-to-restore FILENAME scp://uid@other.host/some_dir /home/me/restored_file

Will restore FILENAME from 3 days ago. If you don't do daily backups and use a non-existing day the restore command will pick the date closest to your date.