Xcopy /d check
Posted: 17 Dec 2009 08:09
Hi there
Please suggest anything other than robocop or xxcopy if possible through DOS only.
I have 2 servers A and B.
I have a batch file which will sync B with A.
There are 3 identical folders on A and B and they both are of huge
size.
At the minute everytime we sync server B with A, we are copying the
entire folder across from B to A. This is very time consuming and i'm
trying to reduce this
The copy command i have at the minute is as follows i.e.
xCopy /S \\%2\g$\Utility\Mgt \\%1\g$\Utility\Mgt >>"file.log"
I was thinking of modifying the xcopy command as follows( would it
work)
xCopy /S /d \\%2\g$\Utility\Mgt \\%1\g$\Utility\Mgt >>"file.log"
Please note i have added /d as an extra switch and provided any date
and time values. Coz i can;t check this script at the minute, will my
above modified script compare Mgt folders on both the servers and only
copies those files which are mismatches. Is it also better to use a
beyond compare tool or something like that to achieve my objective?.
please advice
Please suggest anything other than robocop or xxcopy if possible through DOS only.
I have 2 servers A and B.
I have a batch file which will sync B with A.
There are 3 identical folders on A and B and they both are of huge
size.
At the minute everytime we sync server B with A, we are copying the
entire folder across from B to A. This is very time consuming and i'm
trying to reduce this
The copy command i have at the minute is as follows i.e.
xCopy /S \\%2\g$\Utility\Mgt \\%1\g$\Utility\Mgt >>"file.log"
I was thinking of modifying the xcopy command as follows( would it
work)
xCopy /S /d \\%2\g$\Utility\Mgt \\%1\g$\Utility\Mgt >>"file.log"
Please note i have added /d as an extra switch and provided any date
and time values. Coz i can;t check this script at the minute, will my
above modified script compare Mgt folders on both the servers and only
copies those files which are mismatches. Is it also better to use a
beyond compare tool or something like that to achieve my objective?.
please advice