how to unbungle a bad backup

Jamie Heilman jamie@audible.transient.net
Sun, 14 Apr 2002 22:38:13 -0700


--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

> That is the right syntax.  I'm not sure why there would be .missing 
> increments:  the diffs go backwards in time, so if you delete a lot of 
> files, you should get a lot of .snapshot increments; if you create a lot 
> of new files, you get a lot of .missing increments (to restore the old 
> state you have to delete the files marked as .missing files).  Also, can 
> you tell me the exact error message?

Attached, with appologies to brett ;)  Its ok, he probably won't care
if a portion of his directory shows up in some random mail archive.
I'm betting that in my dementia I ran rdiff-backup twice, once with
the sparse source directory, which removed these directories, and then
again with the recovered source directory - that would explain the
missing files.  

>    I might normally be able to give you a better answer but I'm 
> travelling (will get back next weekend) and don't have non-painful 
> access to my system.

No biggie, I'm the process of restoring the way we discussed - I'll
lose my incrementals for those 4 directories, but 3 of them aren't a
big deal, and the 4th I'll just have to suck up and deal with.

-- 
Jamie Heilman                   http://audible.transient.net/~jamie/
"It's almost impossible to overestimate the unimportance of most things."
							-John Logue

--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="boom.txt"

shako:/ext/backups# rdiff-backup -v 8 rdiff-backup-data/increments/akagai.2002-04-12T01\:50\:34-07\:00.dir /ext/restored/akagai    
Starting Restore
Using root mirror /ext/backups
Using mirror file /ext/backups/akagai
Restoring /ext/backups/akagai with increments rdiff-backup-data/increments/akagai.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai
Applying increment rdiff-backup-data/increments/akagai.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai
Making directory /ext/restored/akagai
Copying attributes from ('akagai.2002-04-12T01:50:34-07:00.dir',) to /ext/restored/akagai
Restoring /ext/backups/akagai/brett with increments rdiff-backup-data/increments/akagai/brett.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett
Applying increment rdiff-backup-data/increments/akagai/brett.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett
Making directory /ext/restored/akagai/brett
Copying attributes from ('brett.2002-04-12T01:50:34-07:00.dir',) to /ext/restored/akagai/brett
Restoring /ext/backups/akagai/brett/.bash_history with increments rdiff-backup-data/increments/akagai/brett/.bash_history.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.bash_history
Applying increment rdiff-backup-data/increments/akagai/brett/.bash_history.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.bash_history
Restoring /ext/backups/akagai/brett/.bash_logout with increments rdiff-backup-data/increments/akagai/brett/.bash_logout.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.bash_logout
Applying increment rdiff-backup-data/increments/akagai/brett/.bash_logout.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.bash_logout
Regular copying ('brett', '.bash_logout.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.bash_logout
Copying attributes from ('brett', '.bash_logout.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.bash_logout
Restoring /ext/backups/akagai/brett/.bash_profile with increments rdiff-backup-data/increments/akagai/brett/.bash_profile.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.bash_profile
Applying increment rdiff-backup-data/increments/akagai/brett/.bash_profile.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.bash_profile
Restoring /ext/backups/akagai/brett/.bashrc with increments rdiff-backup-data/increments/akagai/brett/.bashrc.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.bashrc
Applying increment rdiff-backup-data/increments/akagai/brett/.bashrc.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.bashrc
Regular copying ('brett', '.bashrc.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.bashrc
Copying attributes from ('brett', '.bashrc.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.bashrc
Restoring /ext/backups/akagai/brett/.jedrc with increments rdiff-backup-data/increments/akagai/brett/.jedrc.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.jedrc
Applying increment rdiff-backup-data/increments/akagai/brett/.jedrc.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.jedrc
Regular copying ('brett', '.jedrc.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.jedrc
Copying attributes from ('brett', '.jedrc.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.jedrc
Restoring /ext/backups/akagai/brett/.muttrc with increments rdiff-backup-data/increments/akagai/brett/.muttrc.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.muttrc
Applying increment rdiff-backup-data/increments/akagai/brett/.muttrc.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.muttrc
Restoring /ext/backups/akagai/brett/.qmail-craplist with increments rdiff-backup-data/increments/akagai/brett/.qmail-craplist.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-craplist
Applying increment rdiff-backup-data/increments/akagai/brett/.qmail-craplist.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-craplist
Regular copying ('brett', '.qmail-craplist.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-craplist
Copying attributes from ('brett', '.qmail-craplist.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-craplist
Restoring /ext/backups/akagai/brett/.qmail-craplist-default with increments rdiff-backup-data/increments/akagai/brett/.qmail-craplist-default.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-craplist-default
Applying increment rdiff-backup-data/increments/akagai/brett/.qmail-craplist-default.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-craplist-default
Regular copying ('brett', '.qmail-craplist-default.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-craplist-default
Copying attributes from ('brett', '.qmail-craplist-default.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-craplist-default
Restoring /ext/backups/akagai/brett/.qmail-craplist-owner with increments rdiff-backup-data/increments/akagai/brett/.qmail-craplist-owner.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-craplist-owner
Applying increment rdiff-backup-data/increments/akagai/brett/.qmail-craplist-owner.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-craplist-owner
Regular copying ('brett', '.qmail-craplist-owner.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-craplist-owner
Copying attributes from ('brett', '.qmail-craplist-owner.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-craplist-owner
Restoring /ext/backups/akagai/brett/.qmail-craplist-return-default with increments rdiff-backup-data/increments/akagai/brett/.qmail-craplist-return-default.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-craplist-return-default
Applying increment rdiff-backup-data/increments/akagai/brett/.qmail-craplist-return-default.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-craplist-return-default
Regular copying ('brett', '.qmail-craplist-return-default.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-craplist-return-default
Copying attributes from ('brett', '.qmail-craplist-return-default.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-craplist-return-default
Restoring /ext/backups/akagai/brett/.qmail-gti-list with increments rdiff-backup-data/increments/akagai/brett/.qmail-gti-list.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.qmail-gti-list
Applying increment rdiff-backup-data/increments/akagai/brett/.qmail-gti-list.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.qmail-gti-list
Restoring /ext/backups/akagai/brett/.qmail-gti-list-default with increments rdiff-backup-data/increments/akagai/brett/.qmail-gti-list-default.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-gti-list-default
Applying increment rdiff-backup-data/increments/akagai/brett/.qmail-gti-list-default.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-gti-list-default
Regular copying ('brett', '.qmail-gti-list-default.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-gti-list-default
Copying attributes from ('brett', '.qmail-gti-list-default.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-gti-list-default
Restoring /ext/backups/akagai/brett/.qmail-gti-list-digest-owner with increments rdiff-backup-data/increments/akagai/brett/.qmail-gti-list-digest-owner.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-gti-list-digest-owner
Applying increment rdiff-backup-data/increments/akagai/brett/.qmail-gti-list-digest-owner.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-gti-list-digest-owner
Regular copying ('brett', '.qmail-gti-list-digest-owner.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-gti-list-digest-owner
Copying attributes from ('brett', '.qmail-gti-list-digest-owner.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-gti-list-digest-owner
Restoring /ext/backups/akagai/brett/.qmail-gti-list-digest-return-default with increments rdiff-backup-data/increments/akagai/brett/.qmail-gti-list-digest-return-default.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.qmail-gti-list-digest-return-default
Applying increment rdiff-backup-data/increments/akagai/brett/.qmail-gti-list-digest-return-default.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.qmail-gti-list-digest-return-default
Restoring /ext/backups/akagai/brett/.qmail-gti-list-owner with increments rdiff-backup-data/increments/akagai/brett/.qmail-gti-list-owner.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-gti-list-owner
Applying increment rdiff-backup-data/increments/akagai/brett/.qmail-gti-list-owner.2002-04-12T01:50:34-07:00.snapshot to /ext/restored/akagai/brett/.qmail-gti-list-owner
Regular copying ('brett', '.qmail-gti-list-owner.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-gti-list-owner
Copying attributes from ('brett', '.qmail-gti-list-owner.2002-04-12T01:50:34-07:00.snapshot') to /ext/restored/akagai/brett/.qmail-gti-list-owner
Restoring /ext/backups/akagai/brett/.qmail-gti-list-return-default with increments rdiff-backup-data/increments/akagai/brett/.qmail-gti-list-return-default.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.qmail-gti-list-return-default
Applying increment rdiff-backup-data/increments/akagai/brett/.qmail-gti-list-return-default.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.qmail-gti-list-return-default
Restoring /ext/backups/akagai/brett/.qmail-gti-webmaster with increments rdiff-backup-data/increments/akagai/brett/.qmail-gti-webmaster.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.qmail-gti-webmaster
Applying increment rdiff-backup-data/increments/akagai/brett/.qmail-gti-webmaster.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.qmail-gti-webmaster
Restoring /ext/backups/akagai/brett/.ssh with increments rdiff-backup-data/increments/akagai/brett/.ssh.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.ssh
Applying increment rdiff-backup-data/increments/akagai/brett/.ssh.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.ssh
Restoring /ext/backups/akagai/brett/.ssh/known_hosts with increments rdiff-backup-data/increments/akagai/brett/.ssh/known_hosts.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.ssh/known_hosts
Applying increment rdiff-backup-data/increments/akagai/brett/.ssh/known_hosts.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/.ssh/known_hosts
Restoring /ext/backups/akagai/brett/Maildir with increments rdiff-backup-data/increments/akagai/brett/Maildir.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett/Maildir
Applying increment rdiff-backup-data/increments/akagai/brett/Maildir.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett/Maildir
Making directory /ext/restored/akagai/brett/Maildir
Copying attributes from ('brett', 'Maildir.2002-04-12T01:50:34-07:00.dir') to /ext/restored/akagai/brett/Maildir
Restoring /ext/backups/akagai/brett/Maildir/cur with increments rdiff-backup-data/increments/akagai/brett/Maildir/cur.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett/Maildir/cur
Applying increment rdiff-backup-data/increments/akagai/brett/Maildir/cur.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett/Maildir/cur
Making directory /ext/restored/akagai/brett/Maildir/cur
Copying attributes from ('brett', 'Maildir', 'cur.2002-04-12T01:50:34-07:00.dir') to /ext/restored/akagai/brett/Maildir/cur
Restoring /ext/backups/akagai/brett/Maildir/cur/978993965.1401.akagai:2,S with increments rdiff-backup-data/increments/akagai/brett/Maildir/cur/978993965.1401.akagai:2,S.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/Maildir/cur/978993965.1401.akagai:2,S
Applying increment rdiff-backup-data/increments/akagai/brett/Maildir/cur/978993965.1401.akagai:2,S.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/Maildir/cur/978993965.1401.akagai:2,S
Restoring /ext/backups/akagai/brett/Maildir/cur/979000450.1826.akagai:2,S with increments rdiff-backup-data/increments/akagai/brett/Maildir/cur/979000450.1826.akagai:2,S.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/Maildir/cur/979000450.1826.akagai:2,S
Applying increment rdiff-backup-data/increments/akagai/brett/Maildir/cur/979000450.1826.akagai:2,S.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/Maildir/cur/979000450.1826.akagai:2,S
Restoring /ext/backups/akagai/brett/Maildir/cur/979005839.1955.akagai:2,S with increments rdiff-backup-data/increments/akagai/brett/Maildir/cur/979005839.1955.akagai:2,S.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/Maildir/cur/979005839.1955.akagai:2,S
Applying increment rdiff-backup-data/increments/akagai/brett/Maildir/cur/979005839.1955.akagai:2,S.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/Maildir/cur/979005839.1955.akagai:2,S
Restoring /ext/backups/akagai/brett/Maildir/new with increments rdiff-backup-data/increments/akagai/brett/Maildir/new.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett/Maildir/new
Applying increment rdiff-backup-data/increments/akagai/brett/Maildir/new.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett/Maildir/new
Making directory /ext/restored/akagai/brett/Maildir/new
Copying attributes from ('brett', 'Maildir', 'new.2002-04-12T01:50:34-07:00.dir') to /ext/restored/akagai/brett/Maildir/new
Restoring /ext/backups/akagai/brett/Maildir/tmp with increments rdiff-backup-data/increments/akagai/brett/Maildir/tmp.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett/Maildir/tmp
Applying increment rdiff-backup-data/increments/akagai/brett/Maildir/tmp.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett/Maildir/tmp
Making directory /ext/restored/akagai/brett/Maildir/tmp
Copying attributes from ('brett', 'Maildir', 'tmp.2002-04-12T01:50:34-07:00.dir') to /ext/restored/akagai/brett/Maildir/tmp
Restoring /ext/backups/akagai/brett/craplist with increments rdiff-backup-data/increments/akagai/brett/craplist.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett/craplist
Applying increment rdiff-backup-data/increments/akagai/brett/craplist.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett/craplist
Making directory /ext/restored/akagai/brett/craplist
Copying attributes from ('brett', 'craplist.2002-04-12T01:50:34-07:00.dir') to /ext/restored/akagai/brett/craplist
Restoring /ext/backups/akagai/brett/craplist/allow with increments rdiff-backup-data/increments/akagai/brett/craplist/allow.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/craplist/allow
Applying increment rdiff-backup-data/increments/akagai/brett/craplist/allow.2002-04-12T01:50:34-07:00.missing to /ext/restored/akagai/brett/craplist/allow
Restoring /ext/backups/akagai/brett/craplist/allow/subscribers with increments rdiff-backup-data/increments/akagai/brett/craplist/allow/subscribers.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett/craplist/allow/subscribers
Applying increment rdiff-backup-data/increments/akagai/brett/craplist/allow/subscribers.2002-04-12T01:50:34-07:00.dir to /ext/restored/akagai/brett/craplist/allow/subscribers
Making directory /ext/restored/akagai/brett/craplist/allow/subscribers
Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 5099, in ?
    Globals.Main.Main()
  File "/usr/bin/rdiff-backup", line 4843, in Main
    self.take_action(rps)
  File "/usr/bin/rdiff-backup", line 4820, in take_action
    elif self.action == "restore": apply(self.Restore, rps)
  File "/usr/bin/rdiff-backup", line 4975, in Restore
    HighLevel.Restore(rtime, mirror_base, inc_tup, rpout)
  File "/usr/bin/rdiff-backup", line 4278, in Restore
    baseinc_tup, target_base)
  File "/usr/bin/rdiff-backup", line 3949, in RestoreRecursive
    Restore.RestoreFile(rest_time, mirror, inclist, target)
  File "/usr/bin/rdiff-backup", line 3879, in RestoreFile
    for inc in inclist: Restore.applyinc(inc, rptarget)
  File "/usr/bin/rdiff-backup", line 3917, in applyinc
    target.mkdir()
  File "/usr/bin/rdiff-backup", line 2441, in mkdir
    self.conn.os.mkdir(self.path)
OSError: [Errno 2] No such file or directory: '/ext/restored/akagai/brett/craplist/allow/subscribers'


--mP3DRpeJDSE+ciuQ--