philipgecko
asked on
Robocopy commands
Hi there,
Please can someone tell me if I have the correct robocopy commands for what I want to do. Basically I want the source destination to be the master and NOT to be affected in anyway and i need robocopy to update the destination folder to bring it inline with the source folder. I have the following command:
robocopy "\\source file" "\\destination file" /COPYALL /B /SEC /MIR /R:10 /W:1 /Tee /LOG+:e:\remote-backup-log .txt
technix-rcopy.txt
Please can someone tell me if I have the correct robocopy commands for what I want to do. Basically I want the source destination to be the master and NOT to be affected in anyway and i need robocopy to update the destination folder to bring it inline with the source folder. I have the following command:
robocopy "\\source file" "\\destination file" /COPYALL /B /SEC /MIR /R:10 /W:1 /Tee /LOG+:e:\remote-backup-log
technix-rcopy.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No it won't , will just be doing copying, nothing will change on the source.
ASKER
ok thx
Of course you probably know this, but for the benefit of any newcomers to this thread, here is a warning:
The /MIR command line option will DELETE any file in the destination directory that isn't present in the source directory. The job of /MIR is to make Destination look just like Source. So if Source contains three files A,B,C and destination contains A,B,D, then /MIR will copy C and then permanently delete D.
The /MIR command line option will DELETE any file in the destination directory that isn't present in the source directory. The job of /MIR is to make Destination look just like Source. So if Source contains three files A,B,C and destination contains A,B,D, then /MIR will copy C and then permanently delete D.
Hey philipgecko,
Did everything work out for you?
If everything is good, you should probably close this and assign points, if not we may be able to help you more.
Did everything work out for you?
If everything is good, you should probably close this and assign points, if not we may be able to help you more.
ASKER