Mirror a folder from one location to another location

I would like to mirror a folder from one of the server here in UK (\ABCCDEXYZ) to a Server in USA (\ABCCDEXYZ). Current plan is to use Robocopy and run it as a batch file using Task scheduler every 30 minutes, Using a local server in the LAB (Its running 24/7 some access rights to the server needs to be sorted out).

Basically I need some help to redefine the Robocopy script with all possible additional options (Ex: time stamps from source folder, Copy on deleted/ modified files, Dealing with a locked file, Make a zip backup copy of source before each run) And any other better and simple method to accomplish the same task



Why would u use Robocopy if you would actually like to sync information??
It would be an option to go for DFRS, the following link is a good way to start.

Problem with robocopy is that is it less failsafe then actually syncing the information using Microsoft technology.
The only thing you do need is a DFS implementation but this is really easy and straightforward to implement.

http://technet.microsoft.com/en-us/library/jj127250.aspx



Why would u use Robocopy if you would actually like to sync information??
It would be an option to go for DFRS, the following link is a good way to start.

Problem with robocopy is that is it less failsafe then actually syncing the information using Microsoft technology.
The only thing you do need is a DFS implementation but this is really easy and straightforward to implement.

http://technet.microsoft.com/en-us/library/jj127250.aspx



Have you looked into SyncBack from http://www.2brightsparks.com/? They offer a freeware version that give you enough functionality to accomplish the items you mentioned above.

You can also setup a regular schedule of a job profile, thru SyncBack, that configures a scheduled task.

Dan



I agree with rhandels that you could use DFS as a solution. But there tends to be some overhead in implementing DFS like installing the feature on all servers to support DFSR, Schema updates, potential AV compatibility issues, troubleshooting when an issues occurs...

DFS may be a bit overkill for simple file sync requirements between 2 servers.

Dan



you may use below command to mirror the folder (it may be drive or folder based on the given source)
use below robocopy command:
robocopy "Source folder path" "Destination folder path" /MIR /SEC /TEE

If you need more switchs please take a look at below link:
1) http://technet.microsoft.com/en-us/library/cc733145.aspx
2) http://ss64.com/nt/robocopy.html



Share this

Related Posts

There was an error in this gadget