samba-bugs@samba.org
2005-Jun-07 18:01 UTC
[Bug 2758] "File exists" error using options -b and --backup-dir with device files.
https://bugzilla.samba.org/show_bug.cgi?id=2758 wayned@samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Additional Comments From wayned@samba.org 2005-06-07 10:49 ------- Yes, this particular problem started in 2.6.4 because prior to that, rsync was failing to backup any updated devices (and apparently symlinks as well). A quick fix would be to try to delete the item in the way in the backup dir, but the backup code is systemically bad at overwriting existing objects (such as replacing a file with a dir or visa versa), so the code really needs some deep surgery. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2005-Jun-07 18:01 UTC
[Bug 2758] "File exists" error using options -b and --backup-dir with device files.
https://bugzilla.samba.org/show_bug.cgi?id=2758 ------- Additional Comments From wayned@samba.org 2005-06-07 10:56 ------- Created an attachment (id=1264) --> (https://bugzilla.samba.org/attachment.cgi?id=1264&action=view) A partial fix My version of the quick-fix that only deals with removing a device/file/symlink that's in the way of a device or symlink. It also fixes a couple problems in the logic in the code for backing up a device or a symlink. I didn't see any reason to constrain the prior object backed up to being another device when backing up a device, so my code just tries to get rid of anything that's in the way. It will still fail for dir/non-dir mismatches, but that's a deeper problem that has been around for a very long time. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
Seemingly Similar Threads
- [Bug 2758] New: "File exists" error using options -b and --backup-dir with device files.
- [Bug 10209] New: rsync in dry run reports it will create a backup dir even though it already exists
- DO NOT REPLY [Bug 4834] New: --inplace with --backup --backup-dir does not work
- [Bug 1646] New: --inplace with --backup --backup-dir does not work
- [Bug 11668] New: incorrect/inconsistent behavior when --backup-dir is on a full filesystem