Thomas N
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
C:\>robocopy \\server1 \\server2 *.* /E /MIR /SEC /R:0 /W:1 /COPY:DATSO /LOG:c:\roboc
opy.log
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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