Tue 10 Jun 2008 05:42:31 PM UTC, comment #1:
Sorry, this is not a bug in rdiff-backup. What has happened is that your filesystem has inappropriately created the file 'hl' before rdiff-backup has asked for it to be created with mkdir(). Thus, I am closing this bug report as invalid.
Given that your paths are of the form '/s3/...', I am assuming you are using the Amazon S3 service in some way. The bug could very well be in the filesystem mechanism you are using to access the S3 service. If you care to get rdiff-backup running on S3, please post details on your setup and diagnostic information to the mailing list.
|
Fri 07 Mar 2008 10:03:48 PM UTC, original submission:
Exception '[Errno 17] File exists: '/s3/Linus/rdiff-backup-data/rdiff-backup.tmp.0/hl'' raised of class 'exceptions.OSError':
File "/var/lib/python-support/python2.4/rdiff_backup/Main.py", line 302, in error_check_Main
try: Main(arglist)
File "/var/lib/python-support/python2.4/rdiff_backup/Main.py", line 322, in Main
take_action(rps)
File "/var/lib/python-support/python2.4/rdiff_backup/Main.py", line 278, in take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/var/lib/python-support/python2.4/rdiff_backup/Main.py", line 332, in Backup
rpout.conn.fs_abilities.backup_set_globals(rpin, force)
File "/var/lib/python-support/python2.4/rdiff_backup/fs_abilities.py", line 746, in backup_set_globals
dest_fsa = FSAbilities('destination').init_readwrite(Globals.rbdir)
File "/var/lib/python-support/python2.4/rdiff_backup/fs_abilities.py", line 150, in init_readwrite
self.set_hardlinks(subdir)
File "/var/lib/python-support/python2.4/rdiff_backup/fs_abilities.py", line 180, in set_hardlinks
hl_dir.mkdir()
File "/var/lib/python-support/python2.4/rdiff_backup/rpath.py", line 894, in mkdir
self.conn.os.mkdir(self.path)
--
Changing line 180 as follows seems to fix:
- hl_dir.mkdir();
+ if not hl_dir.isdir():
+ hl_dir.mkdir()
|