[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] AssertionError when restoring , traceback conta
From: |
devzero |
Subject: |
Re: [rdiff-backup-users] AssertionError when restoring , traceback contains directory names |
Date: |
Sun, 04 Feb 2007 12:35:02 +0100 |
hi !
i wanted to reproduce your error and just recognized, that i should have made
some restore test (ouch!) after upgrading to 1.1.8
something gone horribly wrong with restore (see below)
will try a downgrade to 1.1.5
> I've been using rdiff-backup for a year now, and I am very happy with
> it, although I probably could have discovered this problem at a more
> convenient time had I done some test restores.
backup is only safe, if you do some test-restore on a regular basis. as i
should have done, too ;)
regards
roland
vmhost:/backup/vserver1_rdiff/etc # rdiff-backup -r now . /tmp/tmp/restore/
Exception 'RestoreSetGlobals instance has no attribute
'set_escape_dos_devices'' raised of class 'exceptions.AttributeError':
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 298,
in error_check_Main
try: Main(arglist)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 318,
in Main
take_action(rps)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 284,
in take_action
elif action == "restore-as-of": Restore(rps[0], rps[1], 1)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 481,
in Restore
dest_rp.conn.fs_abilities.restore_set_globals(dest_rp)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/fs_abilities.py",
line 705, in restore_set_globals
rsg.set_escape_dos_devices()
Traceback (most recent call last):
File "/usr/local/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.error_check_Main(sys.argv[1:])
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 298,
in error_check_Main
try: Main(arglist)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 318,
in Main
take_action(rps)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 284,
in take_action
elif action == "restore-as-of": Restore(rps[0], rps[1], 1)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 481,
in Restore
dest_rp.conn.fs_abilities.restore_set_globals(dest_rp)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/fs_abilities.py",
line 705, in restore_set_globals
rsg.set_escape_dos_devices()
AttributeError: RestoreSetGlobals instance has no attribute
'set_escape_dos_devices'
> -----Ursprüngliche Nachricht-----
> Von: Torbjørn <address@hidden>
> Gesendet: 04.02.07 11:05:15
> An: address@hidden
> Betreff: [rdiff-backup-users] AssertionError when restoring, traceback
> contains directory names
> Hey, all ..
>
> I've been using rdiff-backup for a year now, and I am very happy with
> it, although I probably could have discovered this problem at a more
> convenient time had I done some test restores.
>
> I have rdiff-backup running on a script to back up, amongst other
> things, /etc, and as I try to restore this it crashes out with an
> AssertionError.
> The traceback message contains some directory names.
>
> I don't know about the pasting guidelines on this list, so I will just
> go ahead and paste the whole shebang right here ..
>
> Anyone here got any clues ?
> Am I doing something wrong when restoring with the "-r now . <somedir>"
> arguments ?
>
> I am using rdiff-backup from Debian stable, rdiff-backup 0.13.4.
>
> Thanks in advance, guys !
>
> -- Torbjørn
>
> address@hidden:~/backup/odin.kfeuro.com/etc$ rdiff-backup -l .
> Warning: ownership cannot be changed on filesystem at
> /home/admin/backup/odin.kfeuro.com/etc/./rdiff-backup-data
> -----------------------------------------------------------------
> Detected abilities for archive (read/write) file system:
> Characters needing quoting ''
> Ownership changing Off
> Hard linking On
> fsync() directories On
> Directory inc permissions On
> Access control lists Off
> Extended attributes Off
> Mac OS X style resource forks Off
> Mac OS X Finder information Off
> -----------------------------------------------------------------
> Found 31 increments:
> increments.2006-08-24T06:47:37+02:00.dir Thu Aug 24 05:47:37 2006
> increments.2006-08-27T03:46:30+02:00.dir Sun Aug 27 02:46:30 2006
> increments.2006-08-28T03:53:14+02:00.dir Mon Aug 28 02:53:14 2006
> increments.2006-09-04T03:50:41+02:00.dir Mon Sep 4 02:50:41 2006
> increments.2006-09-06T03:47:45+02:00.dir Wed Sep 6 02:47:45 2006
> increments.2006-09-11T03:51:08+02:00.dir Mon Sep 11 02:51:08 2006
> increments.2006-09-12T03:50:18+02:00.dir Tue Sep 12 02:50:18 2006
> increments.2006-09-14T03:50:23+02:00.dir Thu Sep 14 02:50:23 2006
> increments.2006-09-17T04:09:57+02:00.dir Sun Sep 17 03:09:57 2006
> increments.2006-09-19T10:53:06+02:00.dir Tue Sep 19 09:53:06 2006
> increments.2006-09-21T03:51:01+02:00.dir Thu Sep 21 02:51:01 2006
> increments.2006-10-19T15:59:08+02:00.dir Thu Oct 19 14:59:08 2006
> increments.2006-10-31T03:57:03+01:00.dir Tue Oct 31 03:57:03 2006
> increments.2006-11-02T03:59:20+01:00.dir Thu Nov 2 03:59:20 2006
> increments.2006-11-07T03:57:40+01:00.dir Tue Nov 7 03:57:40 2006
> increments.2006-11-13T04:01:02+01:00.dir Mon Nov 13 04:01:02 2006
> increments.2006-11-15T03:58:13+01:00.dir Wed Nov 15 03:58:13 2006
> increments.2006-11-16T04:00:12+01:00.dir Thu Nov 16 04:00:12 2006
> increments.2006-11-19T04:06:27+01:00.dir Sun Nov 19 04:06:27 2006
> increments.2006-11-21T03:59:58+01:00.dir Tue Nov 21 03:59:58 2006
> increments.2006-11-24T04:04:21+01:00.dir Fri Nov 24 04:04:21 2006
> increments.2006-11-28T04:03:11+01:00.dir Tue Nov 28 04:03:11 2006
> increments.2006-11-29T04:05:03+01:00.dir Wed Nov 29 04:05:03 2006
> increments.2006-12-04T04:09:07+01:00.dir Mon Dec 4 04:09:07 2006
> increments.2006-12-05T04:05:09+01:00.dir Tue Dec 5 04:05:09 2006
> increments.2006-12-08T04:10:50+01:00.dir Fri Dec 8 04:10:50 2006
> increments.2006-12-13T04:13:01+01:00.dir Wed Dec 13 04:13:01 2006
> increments.2007-01-07T04:25:01+01:00.dir Sun Jan 7 04:25:01 2007
> increments.2007-01-26T04:16:21+01:00.dir Fri Jan 26 04:16:21 2007
> increments.2007-01-29T04:18:45+01:00.dir Mon Jan 29 04:18:45 2007
> increments.2007-01-31T04:17:45+01:00.dir Wed Jan 31 04:17:45 2007
> Current mirror: Sun Feb 4 04:23:42 2007
> address@hidden:~/backup/odin.kfeuro.com/etc$ rdiff-backup -r now .
> ~/restore/
> Warning: ownership cannot be changed on filesystem at /home/admin/restore
> -----------------------------------------------------------------
> Detected abilities for destination (read/write) file system:
> Characters needing quoting ''
> Ownership changing Off
> Hard linking On
> fsync() directories On
> Directory inc permissions On
> Access control lists Off
> Extended attributes Off
> Mac OS X style resource forks Off
> Mac OS X Finder information Off
> -----------------------------------------------------------------
> -----------------------------------------------------------------
> Detected abilities for source (read only) file system:
> Access control lists Off
> Extended attributes Off
> Mac OS X style resource forks Off
> Mac OS X Finder information Off
> -----------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/bin/rdiff-backup", line 23, in ?
> rdiff_backup.Main.Main(sys.argv[1:])
> File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
> 260, in Main
> take_action(rps)
> File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
> 240, in take_action
> elif action == "restore-as-of": Restore(rps[0], rps[1], 1)
> File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
> 465, in Restore
> inc_rpath, dest_rp, time)
> File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
> 45, in Restore
> TargetS.patch(target, diff_iter)
> File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
> 307, in patch
> for diff in rorpiter.FillInIter(diff_iter, target):
> File "/usr/lib/python2.3/site-packages/rdiff_backup/rorpiter.py",
> line 181, in FillInIter
> for rp in rpiter:
> File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
> 264, in get_diffs_from_collated
> diff = cls.get_diff(mir_rorp, target_rorp)
> File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
> 277, in get_diff
> mir_rorp.setfile(cls.rf_cache.get_fp(expanded_index))
> File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
> 363, in get_fp
> rf = self.get_rf(index)
> File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
> 357, in get_rf
> if (index[:-1] == rf.index[:-1] or not
> File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
> 382, in add_rfs
> if Globals.process_uid != 0: self.perm_changer(temp_rf.mirror_rp)
> File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
> 698, in __call__
> assert index > old_index, (index, old_index)
> AssertionError: (('X11',), ('X11', 'Xresources', 'xfree86-common'))
> address@hidden:~/backup/odin.kfeuro.com/etc$
>
>
>
>
> _______________________________________________
> rdiff-backup-users mailing list at address@hidden
> http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
> Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
>
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [rdiff-backup-users] AssertionError when restoring , traceback contains directory names,
devzero <=