• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 822
  • Last Modified:

RoboCopy Options

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
pause

Any Advances?>
0
ncomper
Asked:
ncomper
2 Solutions
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
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)
0
 
SysExpertCommented:
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

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now