1.

Solve : Xcopy /d check?

Answer»

Hi there
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



Discussion

No Comment Found