Link to home
Start Free TrialLog in
Avatar of Thomas N
Thomas NFlag for United States of America

asked on

Robocopy question

Im running this robocopy command and I want to make sure it just copies the files over and keeps the files in both location. Is the command below okay? Also is there any switch that would delete the original location?

C:\>robocopy \\server1  \\server2 *.* /E /MIR /SEC /R:0 /W:1 /COPY:DATSO /LOG:c:\roboc
opy.log
Avatar of NVIT
NVIT
Flag of United States of America image

> ... switch that would delete the original location
Use /MOVE to move files and dirs (delete from source after copying)

Also use /DCOPY:T to copy Directory Timestamps. Else it will have the current time

Good info here...
http://ss64.com/nt/robocopy.html
Avatar of Thomas N

ASKER

So the command I have above should be okay right? It should keep at both locations? Thanks
/MIR copies (mirrors) the source. So, Yes... A copy at both locations. Don't forget the /DCOPY:T switch, too.

To gain confidence, try the command on a test folder. It doesn't have to be lots of files. Just include some folders, too.
ASKER CERTIFIED SOLUTION
Avatar of zalazar
zalazar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial