Hello,
What is the correct way to setup a sync between two remote servers with robocoby so that if a file is removed in either server this will be reflected once the schedular is run?
We have two Windows 2003 Servers, not in the same location.
Thanks
Thank you for your response, it does make sense to setup a DFS, but my primary task for now is to figure out why the two servers are not syncing correctly when using robocopy, as I don't have error files at the present to track the problem, I wanted to find before hand if there was a correct way to do this.
REM STAT 2007
for /F "tokens=1,2* delims=/" %%A IN ('echo %date%') DO set filename=%%C_%%B_%%A
for /F "tokens=1,2* delims=:," %%A IN ('echo %time%') DO set filename=%filename%_%%Ah%%B
set filename=%filename%_STAT2007.log
robocopy "D:\source" "\\destination" /xo /r:3 /w:2 /E /log:%filename% /v /ts /np /xf *.rsw *.ppl *.tpl *.osi *.3ds *.sim *.dat *.out *.dbs *.msh
REM STAT 2006
for /F "tokens=1,2* delims=/" %%A IN ('echo %date%') DO set filename=%%C_%%B_%%A
for /F "tokens=1,2* delims=:," %%A IN ('echo %time%') DO set filename=%filename%_%%Ah%%B
set filename=%filename%_STAT2006.log
robocopy "D:\source" "\\destination" /xo /r:3 /w:2 /E /log:%filename% /v /ts /np /xf *.rsw *.ppl *.tpl *.osi *.3ds *.sim *.dat *.out *.dbs *.msh
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.