I'm moving jobs away from a windows box, one task it runs is the following simple robocopy command: robocopy "c:\source\path" "c:\destination\path" /s /mot:10 /NP /M
The /M flag enables me to only move new files, then it sets the archive attribute.
Is there a way I can achieve this in bash? I'm aware that rsync has the --ignore-existing switch, but this isn't suitable, as the data is going to be removed from the destination folder once copied. So wouldn't this copy the file over again once removed from the destination path?
Is there a way, to write a list of copied files to a log, and have that log queried to see if it exists before copying the new file to the destination path?