How to use robocopy to create and maintain an exact copy of a directory

  • Thread starter Thread starter arno
  • Start date Start date
A

arno

Hello,

I would like to use robocopy to create and maintain an exact copy of a
folder on another drive, only the data that has changes should be
copied. I cannot figure out what combination of switches I have to use,
could you pls. help?

Eg. I have c:\myfolder (with subdirectories) and overnight I want to
create an exact copy at d:\myfolder. I want to copy only files that
where added or changed to c:\myfolder to save network resources. Files
that where deleted in c:\myfolder should also be deleted in
d:\myfolder. How can this be done?

Thank you

arno
 
PS:

I'm not sure if this is doing the job:

robocopy c:\myfolder d:\myfolder *.* /MIR /COPYALL
 
Back
Top