Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have two windows servers and want to take backup of certain folder from one server to another server automatically whenever that folder is updated. Or at least as a hourly/daily task. In Unix there is a feature called rsync. I am not able to know how its done on windows. Both the servers are in Intranet but in different locations, so the transfer rate is little slow.

share|improve this question
    
Check out SyncBack Pro by 2BrightSparks... simple, and cheap, and fast, with good reporting. Use it in conjunction with volume shadowcopy and you're good. –  SpacemanSpiff Apr 23 '12 at 15:23

4 Answers 4

You can use rsync on windows with Cygwin, but I suggest you use the tool Robocopy for this.

To use robocopy:

Robocopy C:\YourFolder \\RemoteComputerName\Share

Also check the options here.

share|improve this answer
    
But can we schedule as a daily task using Robocopy –  user434509 Apr 23 '12 at 15:37
    
yes. I do backups of certain folders on all my users computers every 2-3 hours using a robocopy script ran from a scheduled event –  Safado Apr 23 '12 at 15:42
    
@user434509 windows comes with an equivalent of cron called the task scheduler. –  Lucas Kauffman Apr 23 '12 at 16:07

If you're looking for something you can run periodically as a scheduled job, then check out robocopy.

If you're looking for something that will automatically transfer changes in near-realtime, then you'll need to look into setting up DFS replication between the two servers.

share|improve this answer
    
I think DFS can do it. but I have a doubt about using it. When I try to set this up it is asking for a domain root. How can we put an IP address instead of domain root. –  user434509 Apr 23 '12 at 15:39
    
You need to read about how DFS works. Namespaces would be where you would setup the folders to show up as virtual shares under the Domain Root. Once you create the shares, you can then add replication between them to keep the folder on one server synced with another. Basically DFS syncs two shares. (very basically, it's a bit more complicated than that). –  MikeAWood Apr 23 '12 at 21:42

I recommend using Windows Backup. It allows for Differential OR Incremental backups to a file location, which should give you what you need.

What are you backing up? Just static files, or a DB?

share|improve this answer
    
These are static files but has to be scheduled as a daily task. –  user434509 Apr 23 '12 at 15:37
    
Windows Backup will do this. I recommend it over Robocopy (which will work) because Windows Backup will not only do what you're looking for, but it will also schedule the task for you. All GUI, no command line. –  JohnThePro Apr 23 '12 at 15:42

Rather than trying to copy the files and setting up jobs, I'd probably set up DFSR. Distributed File System replication allowsreplication scheduling and bandwidth throttling. DFS Replication uses a compression protocol called Remote Differential Compression (RDC), which can be used to efficiently update files over a limited-bandwidth network. Additionally cross file replication can be used to further reduce the amount of data transmitted (very useful for journal type files)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.