bugzilla-daemon@dp3.samba.org
2006-Jan-30 22:16 UTC
DO NOT REPLY [Bug 3465] New: --files-from does not --delete
https://bugzilla.samba.org/show_bug.cgi?id=3465 Summary: --files-from does not --delete Product: rsync Version: 2.6.6 Platform: Other OS/Version: AIX Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: michael.w.grenier@lmco.com QAContact: rsync-qa@samba.org If a file is on the destination box but not specified in the file given to --files-from option, shouldn't the file be deleted? Actual command: rsync -vrptgz --delete -l -P -e rsh --stats --bwlimit=120 --timeout=1600 --files-from=files.txt /src somebox:/src I want the files and directories under somebox:/src that are not listed in files.txt to be deleted. This is on AIX 5. (Perhaps this is a feature request?) -- 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.
bugzilla-daemon@dp3.samba.org
2006-Jan-30 22:23 UTC
DO NOT REPLY [Bug 3465] --files-from does not --delete
https://bugzilla.samba.org/show_bug.cgi?id=3465 wayned@samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Status|NEW |ASSIGNED ------- Comment #1 from wayned@samba.org 2006-01-30 15:22 MST ------- Nope, that's not how these options work. It might be interesting to add an option that would tell rsync to transform the piecemeal set of files and implied directories into a hierarchy of normal directories, but that can't be the default or it would break the more traditional uses of --files-from. -- 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.
bugzilla-daemon@dp3.samba.org
2006-Jan-31 16:14 UTC
DO NOT REPLY [Bug 3465] --files-from does not --delete
https://bugzilla.samba.org/show_bug.cgi?id=3465 ------- Comment #2 from michael.w.grenier@lmco.com 2006-01-31 09:13 MST ------- Another work around might be to allow a --max-size of zero combined with a --delete. --maxsize of zero is not supported in rsync. While it wouldn't completely solve the original problem, it will at least delete files on the receiver that are not in the senders directory without transferring anything. Thus one would do the original transfer first: -- rsync -vrptgz --delete -l -P -e rsh --stats --bwlimit=120 --timeout=1600 --files-from=files.txt /src somebox:/src --- followed by something like: -- rsync -rv --delete --max-size=0 -e rsh /src somebox:/src -- to get rid of extra files. Of course, files could still exist on the receiving side that in the senders directory tree that were not part of the --files-from list. But its a start. I supposed I could try to exclude everything (but then I'd need to learn about patterns :-). -- 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.
bugzilla-daemon@dp3.samba.org
2006-Jan-31 18:14 UTC
DO NOT REPLY [Bug 3465] --files-from does not --delete
https://bugzilla.samba.org/show_bug.cgi?id=3465 ------- Comment #3 from wayned@samba.org 2006-01-31 11:13 MST ------- (In reply to comment #2)> Another work around might be to allow a --max-size of zero combined with a > --delete.The recommended way to ask rsync to only delete files is to use the combination of --existing and --ignore-existing together so that rsync is skipping all file transfers and directory/symlink/device creations. There's also the script I just mentioned on the mailing list that turns a list of files into a set of includes & excludes that can be used in place of the --files-from option. The version from CVS is available here: http://rsync.samba.org/ftp/unpacked/rsync/support/files-to-excludes -- 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
2006-Aug-02 01:34 UTC
DO NOT REPLY [Bug 3465] --files-from does not --delete
https://bugzilla.samba.org/show_bug.cgi?id=3465 ------- Comment #4 from hashproduct+rsync@gmail.com 2006-08-01 20:34 MST ------- It would be nice to have an option --delete-unlisted that causes the receiving rsync to delete extraneous files even from destination directories whose "contents" were not part of the transfer. The option would be as simple to implement as marking all directories with FLAG_DEL_HERE. Then Michael could use --delete-unlisted to "make --files-from delete". -- 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 at samba.org
2010-Feb-08 18:47 UTC
DO NOT REPLY [Bug 3465] Option to delete unlisted files with --files-from
https://bugzilla.samba.org/show_bug.cgi?id=3465 matt at mattmccutchen.net changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|--files-from does not -- |Option to delete unlisted |delete |files with --files-from Version|2.6.9 |3.1.0 ------- Comment #5 from matt at mattmccutchen.net 2010-02-08 12:47 CST ------- Clarifying summary and bumping version (this feature still hasn't been added in 3.1.0dev). -- 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 at samba.org
2010-Apr-12 12:06 UTC
DO NOT REPLY [Bug 3465] Option to delete unlisted files with --files-from
https://bugzilla.samba.org/show_bug.cgi?id=3465 matt at mattmccutchen.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kannan.kumarasamy at gmail.com ------- Comment #6 from matt at mattmccutchen.net 2010-04-12 07:06 CST ------- *** Bug 7350 has been marked as a duplicate of this bug. *** -- 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 at samba.org
2011-Feb-02 02:35 UTC
DO NOT REPLY [Bug 3465] Option to delete unlisted files with --files-from
https://bugzilla.samba.org/show_bug.cgi?id=3465 news at siddall.name changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |news at siddall.name ------- Comment #7 from news at siddall.name 2011-02-01 20:35 CST ------- Any progress on this? An option to delete everything in DEST that isn't included in the transfer via something like a --delete-non-included option would make my life _so_ much easier. Since the workarounds are all varying degrees of ugly this is more than just a nice-to-have. I am trying to do: rsync -a --delete /a/b/ /c/d/e/ /f In /f I only want the contents of directories b and e and nothing else -- even if something else is already there. Also, the OS and hardware could probably be set to all since this is something that applies to all platforms. -- 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.