Jeff Lessem <Jeff.Lessem < at > Colorado.EDU>
wrote the following on Thu, 22 Sep 2005 17:53:43 -0600
I'm trying to restore some backups created a long time ago, with an old
version of rdiff-backup, and I am getting a strange error. Files are
created, then deleted, and then rdiff-backup complains that the file
doesn't exist. This backup is from July 31, 2002. The backup was
probably created with whatever rdiff-backup release was current at that
time.
I see the problem with rdiff-backup 0.13.4 from Debian, and I get the
same error with rdiff-backup 1.0.1 with Python 2.3 and 2.4.
It seems to be happening (or, this is my current theory) with files that
did not exist at the time of the original backup, but were later added
to the archive. The first file here is dated December, 2002, so it
wouldn't have existed in the original July, 2002 archive, but only added
later.
Any advice on what to do? Should I roll back to an old version of
rdiff-backup to do these restores?
I'm happy to provide any additional information.
This is the relevant part of the traceback:
Thu Sep 22 17:50:47 2005 Processing changed file 5229_HomewoConsultancy_OU_25-Nov-02(final)2.doc
Thu Sep 22 17:50:47 2005 Regular copying ('5229_HomewoConsultancy_OU_25-Nov-02(final)2.doc',) to home/rdiff-backup.tmp.13
Thu Sep 22 17:50:47 2005 Renaming home/rdiff-backup.tmp.13 to home/5229_HomewoConsultancy_OU_25-Nov-02(final)2.doc
Thu Sep 22 17:50:47 2005 Deleting home/5229_HomewoConsultancy_OU_25-Nov-02(final)2.doc
Hmm that is weird. The backups were from before rdiff-backup made
mirror_metadata files, so that could be part of the problem. Can you
do an ls -l on the relevant increments and mirror files? Like for the
home/5229...doc file, could you do a:
ls -l <destdir>/home/5229...doc
ls -l <destdir>/rdiff-backup-data/increments/home/5229...doc*
Also, can you restore the file "manually"? The current version should
be at <destdir>/home/5229...doc, so just copy that over. Then there
should be some diffs in the
<destdir>/rdiff-backup-data/increments/home dir, you can unzip those
and apply them with rdiff in reverse chronological order.
So depending on the number of files it may be easier to restore them
"manually" or to use an earlier version.
--
Ben Escoto
