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

I am trying to understand the rdiff-backup command which is already implemented to do backups.My question is What is the command to restore all files in one .gz backedup file using rdiff-backup command.Your comments have been very useful.

If i have files like

Available increments are:

   Time                       Size        Cumulative size
   -----------------------------------------------------------------------------
  Sun Jul 25 23:31:34 2010         4.19 GB           4.19 GB   (current mirror)
  Sat Jul 24 23:31:34 2010         1.28 MB           4.19 GB
  Fri Jul 23 23:31:34 2010         0 bytes           4.19 GB
  Thu Jul 22 23:31:34 2010         1.26 MB           4.19 GB
  Wed Jul 21 23:31:37 2010         1.11 MB           4.19 GB
  Tue Jul 20 23:31:33 2010         1.23 MB           4.20 GB

There will be many .gz files so lets say iwant to recover all the data till Thu Jul 22 23:31:34 2010 .How do i do it.How to restore all the file in a .gz file

share|improve this question

2 Answers 2

up vote 1 down vote accepted

I take it you are backing up a tarball which lives in a directory? if so, you'll have to restore the full file at some point in time. It usually works like:

rdiff-backup -r time file /destination/directory

so, for example, say you are trying to recover what's in a directory called example from your rdiff root dir:

cd /dir/of/rdiff/backup

rdiff-backup -r 3D example /tmp/newcopy

and it'll get you the copy as from 3 days ago and put it in /tmp/newcopy

read the man page, section RESTORING.

share|improve this answer
    
Can u please let me know what is the specific time format that needs to be entered.There is no clear documentation for the time format that needs to be specified when restoring –  Hulk Jul 26 '10 at 18:39
    
Time format like 21 23:31:37 2010 ? –  Hulk Jul 26 '10 at 19:10

More info on the time format can be found in the rdiff-backup man page under "TIME FORMATS".

share|improve this answer
    
Thanks.......... –  Hulk Aug 6 '10 at 11:49

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.