troubleshooting Question

Robocopy parameters?

Avatar of mlcktmguy
mlcktmguyFlag for United States of America asked on
Windows BatchStorage Software* Robocopy
4 Comments1 Solution141 ViewsLast Modified:
About a month ago my scheduled batch backup using xcopy began to fail.  I posted a question about the issue on EE and eventually scrapped the xcopy  with a new backup using Robocopy

Old xcopy Backup
xcopy "I:\My Documents\*.*" "K:\Mike\" /s /y /f

Open in new window

Robocopy backup
set LogFile=I:\My Documents\copylog.txt
RoboCopy "I:\My Documents" "K:\RoboCopy" /E /TEE /LOG+:"RoboCopyLog.txt"

The xcopy retained files on the destination that had been removed from the source and I set up the new Robcopy to do the same.

Now the xcopy backup contains files that aren’t in the new Robocopy backup.  These would be files that had been removed from the source drive over time.

The source directory for both backups is I:\My Documents.  There are many subdirectories under this main directory.
I would like to set up a onetime Robocopy that will copy from K:\Mike to K:\Robocopy.  However, the only files (and possibly directories I want to copy are the ones that don’t exist in K:\Robocopy.

What parameters do I use on the onetime RoboCopy to accomplish this?
RoboCopy "K:\Mike" "K:\RoboCopy"  /?????
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros