5

I'm moving a large amount of data from an old server to a new server, I'll have a small windows to swap the servers over so I'm copying all the data in advance (300GB of docs) and then in my small windows I want to just sync the files that have changed which may just be a few GB, XCOPY doesn't seem to be able to do this, any suggestions?

Thanks Steven

Steven
  • 349
  • 4
  • 8
  • 17

5 Answers5

9

Either of rsync (Unixy) or Robocopy (a more windows-native application, and it comes with newer versions of Windows, I believe) should do the trick fine here. They compare the source and destination file trees (they send checksums of the files rather than the whole file, for comparison purposes) and only transfer those bits that have changed.

I've got a lengthy writeup on how we did the migration of Github to their new setup; that involved copying several terabytes of filesystem data and other stuff (databases, etc). Hopefully it'll give you a few ideas.

womble
  • 95,029
  • 29
  • 173
  • 228
0

2012 Update: SyncToy from Microsoft is a GUI file/folder sync "toy" that does a lot of what Robocopy does, but with a nice Windows GUI. It has some enhancements/options like "save overwritten files in the Recycle Bin" that give you an extra layer of protection (some might say confusion) with complicated sync opertions.

https://www.microsoft.com/en-us/download/details.aspx?id=15155

+1 for Robocopy - always a great option.

Mark A
  • 161
  • 6
0

You could you the /D switch with xcopy:

/D:m-d-y Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time.

Robocopy has a /MIR mirror switch that you could try. It's always served me well, although I have heard complaints it can have unexpected behavior.

If you like fiddling with GUI tools, then you might want to give DeltaCopy a try.

Nick Kavadias
  • 10,758
  • 7
  • 36
  • 47
0

Try RichCopy which is an awesome file copy utility.

It's a much more advanced version of RoboCopy, with multi-threading, pause and resume etc...

I believe it was made by the same people who worked on RoboCopy. (don't quote me on this i may be wrong, but i Know it's a Microsoft Freebie)

http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx

Khalid Rahaman
  • 263
  • 1
  • 7
  • 17
0

Recently we did the exact same thing with Robocopy. I was surprised at how well it worked. We moved all the data one weekend, then and refreshed it a couple times during the week with the same robocopy script. The following weekend we did another resync which didn't take very long and then we cut over.

As mentioned by others, there are tons of options, but here is the line we used. You can also put it in a batch file and schedule it to run nightly if need be.

robocopy <source> <destination> /copy:DATSO /mir /XD "system volume information" /XD recycler /r:0 /V /Log:robocopylog_foldername.txt

Lastly, you can use Beyond Compare to be absolutely sure everything was copied.

Aaron
  • 1,002
  • 1
  • 12
  • 18