samba-bugs@samba.org
2006-Jun-16 20:43 UTC
DO NOT REPLY [Bug 3845] New: Add --remove-source-files
https://bugzilla.samba.org/show_bug.cgi?id=3845 Summary: Add --remove-source-files Product: rsync Version: 2.6.9 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: hashproduct+rsync@gmail.com QAContact: rsync-qa@samba.org Let's have a --remove-source-files option that works like --remove-sent-files but removes from the source everything in the file list, not just transferred files. Then I could use rsync for my primary move command (via a wrapper called "mv2") as well as my primary copy command ("cp2"). -- 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-Jun-19 19:40 UTC
DO NOT REPLY [Bug 3845] Add --remove-source-files
https://bugzilla.samba.org/show_bug.cgi?id=3845 wayned@samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #1 from wayned@samba.org 2006-06-19 14:40 MST ------- Yes, I think this is a good idea, particularly because of the problem rsync has doing the right thing when restarting an interrupted transfer that is using --remove-sent-files (i.e. some of the sent files might not get removed). Because of this, I'm thinking about deprecating --remove-sent-files (but leaving it supported to work with older versions). -- 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-Jun-28 03:59 UTC
DO NOT REPLY [Bug 3845] Add --remove-source-files
https://bugzilla.samba.org/show_bug.cgi?id=3845 ------- Comment #2 from jcwren@jcwren.com 2006-06-27 22:59 MST ------- Is there a possible ETA for this feature? It would nicely solve the problem I have with files getting left over after a GPRS link goes down in mid-transfer. My current, and rather gross, solution is to summarily delete everything in the transfer directory after rsync completes successfully. --jc (In reply to comment #0)> Let's have a --remove-source-files option that works like --remove-sent-files > but removes from the source everything in the file list, not just transferred > files. Then I could use rsync for my primary move command (via a wrapper > called "mv2") as well as my primary copy command ("cp2"). >-- 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-Jun-30 16:03 UTC
DO NOT REPLY [Bug 3845] Add --remove-source-files
https://bugzilla.samba.org/show_bug.cgi?id=3845 ------- Comment #3 from wayned@samba.org 2006-06-30 11:03 MST ------- Created an attachment (id=2010) --> (https://bugzilla.samba.org/attachment.cgi?id=2010&action=view) Add --remove-source-files option Here is a patch that adds the --remove-source-files option and deprecates the --remove-sent-files option. I've also checked this into CVS, so it is also available from there or the latest nightly tar file. The code is young, but should be safe as most of the functionality was taken from remove-sent-files. I've run basic tests on it, and it works fine. -- 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
2007-Feb-22 01:15 UTC
DO NOT REPLY [Bug 3845] Make --remove-source-files remove directories too
https://bugzilla.samba.org/show_bug.cgi?id=3845 hashproduct+rsync@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Add --remove-source-files |Make --remove-source-files | |remove directories too ------- Comment #4 from hashproduct+rsync@gmail.com 2007-02-21 19:13 MST ------- A --remove-source-files option was added in 2.6.9, but it does not remove source directories, and I would like it to remove them so that "rsync --remove-source-files" can be used as a mv replacement. Specifically, I would like the sender to do the following: (1) Remove each empty source directory as soon as the generator processes it. (For this to work, the generator would need to send MSG_SUCCESS after processing a directory with no contents in the file list; maybe the --prune-empty-dirs code could be reused to flag such directories.) (2) After removing each source file, check whether the parent directory is empty and in the file list. If so, remove it and recursively consider /its/ parent for removal. I would be satisfied if a separate option or repetition of --remove-source-files activated this behavior. -- 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
2008-Mar-10 09:45 UTC
DO NOT REPLY [Bug 3845] Make --remove-source-files remove directories too
https://bugzilla.samba.org/show_bug.cgi?id=3845 joachim.kluge@hansgrohe.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joachim.kluge@hansgrohe.com ------- Comment #5 from joachim.kluge@hansgrohe.com 2008-03-10 04:45 CST ------- What's the status of this feature? The directory deletion feature is still missing. I'm on 2.6.9 but I couldn't find changes in the Changelog of 3.0. -- 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
2009-Oct-18 21:05 UTC
DO NOT REPLY [Bug 3845] Make --remove-source-files remove directories too
https://bugzilla.samba.org/show_bug.cgi?id=3845 leho at kraav.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |leho at kraav.com ------- Comment #6 from leho at kraav.com 2009-10-18 16:05 CST ------- registered a new account here for this one. really nobody has cared enough to implement it yet? # rsync --version rsync version 3.0.5 protocol version 30 -- 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
2012-May-07 12:56 UTC
[Bug 3845] Make --remove-source-files remove directories too
https://bugzilla.samba.org/show_bug.cgi?id=3845 --- Comment #7 from Tammer Ibrahim <tammer42 at gmail.com> 2012-05-07 12:56:59 UTC --- Hello, I'm also quite interested in this feature. Rsync is already the perfect augmentation of the cp command, and adding this feature would similarly allow an easy drop-in augmentation of the mv command. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2012-Jul-06 01:06 UTC
[Bug 3845] Make --remove-source-files remove directories too
https://bugzilla.samba.org/show_bug.cgi?id=3845 --- Comment #8 from Rian <rian.humphries at opentech.net.au> 2012-07-06 01:05:59 UTC --- I too am interested in this feature as I pull from a remote server that I have no shell access too. I don't have access to run rm -rf or such after the pull is complete so I just have hundred of empty directories sitting on that server. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.