RoboCopy Options

Posted on 2009-02-18
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?>
Question by:ncomper
LVL 71

Accepted Solution

Qlemo earned 375 total points
ID: 23671384
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)
LVL 63

Assisted Solution

SysExpert earned 375 total points
ID: 23674151
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


Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question