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

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
 
A

arno

PS:

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top