We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


RoboCopy Options

ncomper asked
Medium Priority
Last Modified: 2013-12-01
Hi guys,
             just setting up a large file transfer and replication between two folders and wanted to confirm my command. The files are "My Docs" and so protected. i want to ensure that once the first wave of copy is complete when i run the command again i will not just over write the existing files. This will be upto 40Gig at a time so i want to keep it as small as possible.

robocopy.exe F:\Users b:\Users /s /e /XO /zb /R:1 /W:5 /TEE /log+:b:\report\Users_Folders.txt

Any Advances?>
Watch Question

"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
Should be fine as long as you do not want to delete files which do no longer exist, and are not interested in the security information (access rights)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Top Expert 2007
Is this a one time or not ?

I would add dates to the log files so that you have a history

sample of what I use for copying a monthly backup using maxage

@echo off
for /f "tokens=2-4 delims=.:/-, " %%u in ('date /t') do (
  for /f "skip=1 tokens=2-4 delims=/-,()." %%x in ('echo.^|date') do (
    set %%x=%%u
    set %%y=%%v
    set %%z=%%w))

rem set
rem echo "test date" > c:\bin\%dd%-%mm%-%yy%.txt
robocopy e:\ j:\back /S /MAXAGE:34 /TS /FP /NP /TEE /XJ /R:1 /W:2 /LOG:e:\data\rcopy-E-J-%mm%-%dd%-%yy%.txt

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.