Robocopy, do not overwrite existing files, but copy the changed / new ones

Posted by I don't know. on Server Fault See other posts from Server Fault or by I don't know.
Published on 2012-09-24T11:31:24Z Indexed on 2012/09/25 15:39 UTC
Read the original article Hit count: 237

Filed under:
|
|
|

Is it possible to mirror the two directories without overwritting the files in destination directory with new/changed/deleted files. Something like snapshots.

Example: Copy the source directory with all files and sub-directories to destination directory, but if destination directory contains, for example, file A.xls and A.xls has been changed in source directory then copy A.xls but keep the previous A in destination directory as well. To preserve the previous file a datestamp, or counter can be added to the file name.

Example after copy:
SomeDirectory
|--A.xls
|--A_20120701.xls
|--A_20120920.xls

Thank you.

© Server Fault or respective owner

Related posts about Windows

Related posts about backup