w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
RoboCopy Copy To another server in same domain

Something like this would do the trick:

@echo off
REM Filename: sync-dirs.bat
REM generic robocopy backup script that DELETES (purge) files on the 
REM Destination if they are also deleted on the Source! (i.e. sync/mirror).

set ROBOCOPY=c:windowssystem32
obocopy.exe
set SRC=\10.192.10.1shared_folder_A
set DST=\10.194.10.1shared_folder_B

%ROBOCOPY% %SRC% %DST% /MIR /R:10 /W:1 /ETA

Hope this helps..





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.