32
21
I am overwhelmed by the ROBOCOPY documentation. I want to do an incremental backup of my local files to the network drive (M). I want it to run as quickly as possible, with no log file and with as little text as possible to the screen. My files are all somewhere inside one folder (MyFolder) that has many nested subfolders. By "incremental" I mean "only copy what is new or changed." I don't want to delete any historical files in the destination, but if I've changed a file I only want the newer version. And if I have not changed a file, then I don't want to copy it over the existing backed-up file. Is below correct? (Running Win7 Enterprise.)
robocopy C:\MyFolder M:\MyFolder /z /np /xo /e
Please, no suggestions for anything but robocopy. I'm not allowed to install anything. And I don't care about security stuff. I have people for that (whether I want them or not). ;-)
1You need a /s or /e option to copy subdirectories. – David Marshall – 2014-09-19T21:31:36.043
@DavidMarshall: oops. I actually knew that. Added. So, am I good now? – dmm – 2014-09-19T21:51:05.087
Yes. I've been using something similar. – David Marshall – 2014-09-19T21:59:42.440
Testing it now. There is still a bunch of stuff being written to the screen. How do I get rid of it, in future runs? – dmm – 2014-09-19T22:19:59.577
3One option that can make a big difference performance wise is to have multithreaded transfers.
/MT[:N]
I have a 4 core CPU so I typically use something in the 8-16 rage for my number of threads. I figure 2-4 threads per core. You should certainly test with different values on your hardware. Multithreaded helps the most when you have a lot of small files. If you have a small number of large files it won't help nearly as much. – Zoredache – 2014-09-19T23:10:19.630FYI I always use /L first as a dry run to see what robocopy will do and watch out for Extras that may get deleted depending on your options – KCD – 2017-11-22T04:34:55.877