Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

up vote 10 down vote accepted

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.

share|improve this answer
add comment

I don't know duplicity, but the general restore process is to go back to the first FULL backup PRIOR to the date you want to restore to. Restore that FULL backup, then restore ALL the incremental backups since that FULL backup, in date order, until you get to the date you want.

share|improve this answer
    
Thanks for the info, very interesting comment. I'm more of a programmer than a sysadmin, so I'm no expert in this field; can anybody else recommend this as a best practice? If so, please mod Jeff up! Thanks... –  mtnorthrop Mar 3 '11 at 17:46
    
that used to be the case if you are using tape based backup. if disk based (rsnapshot/rsync etc) you dont have to anymore –  hoberion Mar 29 '11 at 12:17
    
In fact, duplicity will do exactly that for you. –  Paul Aug 30 '12 at 15:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.