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.

Let say i have a source directory which contains The contents /foo/a /foo/b(These are the files in a directory on a remote system)

using rdiff command i make a backup as

 rdiff-backup root@192.168.254.111::/foo backups

And a,b are now present in my backups directory.And then i delete file a from the remote system and again i do a sync so my local directory has the file b only.

My question is that how do i restore file a if the deletion and sync is done on the same day

Thanks..

share|improve this question

1 Answer 1

This command:

rdiff-backup -r 1D root@192.168.254.111::/foo/a backups/a

should restore your file as of "1 day ago". Is this what you're looking for?

You can also use 1B instead of 1D for last backup session.

More about the time formats: rdiff-backup man pages

And some examples of usage.

share|improve this answer

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.