rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] Restore failing


From: Andrew Ferguson
Subject: Re: [rdiff-backup-users] Restore failing
Date: Fri, 6 Mar 2009 13:53:12 -0500

On Mar 6, 2009, at 1:24 PM, Bob Mead wrote:
Hello all:
I'm trying to restore some files from a backup created 1/20/09. Using the following command (as per the man page, I added the -v5):

rdiff-backup -v5 /<path-to-backup-files>/rdiff-backup-data/ increments/home.2009-01-20T16:27:31-08:00.dir /<path-to-restore-to>

gives the output: (appended below)

Any ideas on why rdiff is failing to restore my files?

Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 23, in ?
  rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 285, in Main
  take_action(rps)
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 264, in take_action
  elif action == "restore": Restore(*rps)
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 505, in Restore
  inc_rpath, dest_rp, time)
File "/usr/lib/python2.4/site-packages/rdiff_backup/restore.py", line 45, in Restore
  TargetS.patch(target, diff_iter)
File "/usr/lib/python2.4/site-packages/rdiff_backup/restore.py", line 317, in patch
  ITR(diff.index, diff)
File "/usr/lib/python2.4/site-packages/rdiff_backup/rorpiter.py", line 285, in __call__
  last_branch.fast_process(*args)
File "/usr/lib/python2.4/site-packages/rdiff_backup/restore.py", line 634, in fast_process
  rpath.rename(tf, rp)
File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 220, in rename
  if not rp_source.lstat(): rp_dest.delete()
File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 879, in delete
  else: self.conn.os.unlink(self.path)
OSError: [Errno 2] No such file or directory: '/<path-to-restore-to>/ abrune14/.gconf/apps/gnect'



Bob,

Which version of rdiff-backup? I know you're running quite a few versions. :-)

Second, what is the output before this traceback? You said you ran with the -v5 option, so there should be lots of important information. -v7 could be even more helpful (there will be a lot of info)

What has happened is:
- /.../.gconf/apps/gnect existed as a snapshot or diff in that backup (which one?)
- rdiff-backup tried to restore it a temp file. that must have failed.
- rdiff-backup then tried to rename the temp file to the final file name (gnect) - since the temp file didn't exist, it assumed we wanted to delete the target (gnect)
- since the target didn't exist, an error was raised


Andrew




reply via email to

[Prev in Thread] Current Thread [Next in Thread]