Okay so I have looked up the existing answers here and elsewhere but what I can't find out is, if I use the --ignore-existing
option along with the --delete
option, will this combination I still be able to have rsync delete files from the target if they no longer exist in the source AND still prevent rsync from overwriting existing files in the target?
Thanks
Yes,
--delete
and--ignore-existing
options ofrsync
will work together.Here is a test (check the modification times especially):
This works only partially
From rsync man page:
Example:
Now pay attention to the change date of
456