Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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@ 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


share|improve this question

This command:

rdiff-backup -r 1D root@ 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


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.