Roger Oberholtzer wrote:
I use rsync in a cron script to maintain a remote copy of some things. When I first set this up I did not have things deleted on the remote copy. Being an archive, I felt a few extra files are better than missing ones.
I would now like to delete the remote-only files in a controlled fashion. So I have run this command to see what would be deleted:
rsync -nazv --delete --delete-after --rsh=ssh theDir backup:/vol1/theDir
My question is, would this rsync command only delete files on the destination system? In my case, in backup:/vol1/theDir? I do not want anything deleted in 'theDir'. I do not expect that there are any local files that are not in the remote. But just in case.
In my dry run, I saw that there were many hundreds of files that could be deleted. Perhaps I should just collect the names and see if they exist locally. Which they should not... But would rsync ever delete files in 'theDir'?
No, rsync does not do anything to the source files or directories. -- Per Jessen, Zürich (17.6°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org