Dominic, thanks for the tip, alas no luck. Didn't work with the changed backup.list either.

- **/*~
- **/rdiff-backup.tmp.*
- **/#*#
- **/rdiff-backup.tmp.*
- /backup/usr/portage
- /backup/tmp
- /backup/var/tmp
- /backup/sys
- /backup/root
- /backup/var/log
- /backup/var/cache
- /backup/var/run
- /backup/dev

Regards,
Jochen

On 2012-01-26 13:09:17 +0000, Dominic Raferd said:

Jochen:

what if you change /etc/backup.list by removing the final slash from /backup/dev/ i.e. /backup/dev

I think that with your backup list it tries to backup /backup/dev (though not its contents) and maybe this causes the failure?

Dominic
- TimeDicer: Free File Recovery from Whenever

On 25/01/2012 14:45, Jochen wrote:
Hi,

I get a (repeatable) KeyError while backing up to sshfs using rdiff-backup on linux (either version 1.2.8 or 1.3.3). My backups ran normally for about a year, then this error came, and they don't work since.

Any help would be greatly appreciated!

Regards,
Jochen

Command
===
rdiff-backup --no-hard-links --include-globbing-filelist /etc/backup.list --exclude-other-filesystems -v9 /backup /mnt/backup/one

Source directory /backup is a snapshot of /, /mnt/backup is a mounted sshfs, /dev does not exist in the target directory.

/etc/backup.list
===
- **/*~
- **/rdiff-backup.tmp.*
- **/#*#
- **/rdiff-backup.tmp.*
- /backup/usr/portage/
- /backup/tmp/
- /backup/var/tmp/
- /backup/sys/
- /backup/root/
- /backup/var/log/
- /backup/var/cache/
- /backup/var/run/
- /backup/dev/

Error
===
Wed Jan 25 15:32:48 2012  Setting time of /mnt/backup/one/data to 1326994981
Wed Jan 25 15:32:48 2012 Exception '('dev',)' raised of class '<type 'exceptions.KeyError'>': File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 306, in error_check_Main
    try: Main(arglist)
File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 326, in Main
    take_action(rps)
File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 282, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 345, in Backup
    backup.Mirror_and_increment(rpin, rpout, incdir)
File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 51, in Mirror_and_increment
    DestS.patch_and_increment(dest_rpath, source_diffiter, inc_rpath)
File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 251, in patch_and_increment
    ITR(diff.index, diff)
File "/usr/lib64/python2.7/site-packages/rdiff_backup/rorpiter.py", line 280, in __call__
    if last_branch.can_fast_process(*args):
File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 524, in can_fast_process
    mirror_rorp = self.CCPP.get_mirror_rorp(index)
File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 479, in get_mirror_rorp
    except KeyError: return self.get_parent_rorps(index)[1]
File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 461, in get_parent_rorps
    raise KeyError(index)

Traceback (most recent call last):
  File "/usr/bin/rdiff-backup-2.7", line 30, in <module>
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 306, in error_check_Main
    try: Main(arglist)
File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 326, in Main
    take_action(rps)
File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 282, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 345, in Backup
    backup.Mirror_and_increment(rpin, rpout, incdir)
File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 51, in Mirror_and_increment
    DestS.patch_and_increment(dest_rpath, source_diffiter, inc_rpath)
File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 251, in patch_and_increment
    ITR(diff.index, diff)
File "/usr/lib64/python2.7/site-packages/rdiff_backup/rorpiter.py", line 280, in __call__
    if last_branch.can_fast_process(*args):
File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 524, in can_fast_process
    mirror_rorp = self.CCPP.get_mirror_rorp(index)
File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 479, in get_mirror_rorp
    except KeyError: return self.get_parent_rorps(index)[1]
File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 461, in get_parent_rorps
    raise KeyError(index)
KeyError: ('dev',)

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Reply via email to