On 01/12/2018 06:43 PM, jdd@dodin.org wrote:
Le 12/01/2018 à 17:36, Bernhard Voelker a écrit :
In other words, will the option --delete works?
NO, --delete is operating on the DESTINATION. As far as I understood you would like to remove all the archived files from the SOURCE, right?
wrong. If I happen to remove a file from the source, I want this to be also done on the copy
If I first copy the file list in a file and give it as argument for --files-from, will --delete works? else I need an other line to first remove the extra files
sorry, I'm lost. The --delete option clearly operates on the destination: $ rsync --help | grep -F ' --delete ' --delete delete extraneous files from destination dirs For further discussion, please provide simple example directory hierarchies for SRC and DST (like I did), jow it should look like before and after a sync/archive/copy/delete (or whatever you want to achieve) so we can understand what you want/need. Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org