|
Help. noob needs help with file copy!
So I have a very simple question that has come to be a huge headache.
I need to copy files from FolderA into FolderB replacing all files that already exist in FolderB UNLESS the date of the file in FolderB is newer than the date from the same file in FolderA. In the case that file is newer in the destination, I need to skip copy of that file and move on.
I have tried so many different things and nothing has been able to do what I need.
I have tried a simple cp -i but i need to filter by date and choose "don't overwrite" if file being copied is older, but owverwite is file date is same.
there is a long story to go along with this as well.
Thanks in advance
|