How to use Robocopy and RichCopy to Migrate TB of data

When i tried using RoboCopy for my data migration tasks, I found out that it would take way to long since the data transfer speed on RoboCopy was quite poor.

Looking for other alternatives i found Microsoft RichCopy that did the trick.

But RichCopy comes up with some errors like “file not found” “directory not found” and i have a hard time trusting this output.

So instead i used Robocopy afterwards to verify the data, RoboCopy will only copy changes or files not copied by RichCopy and even if RoboCopy says “modified” in the output does not meen that it copies all the data Again, it only copies changes. I uses these commands which catched the missings links from RichCopy.

robocopy <source> <destination> /XO /ZB /E /FFT /DCOPY:T /COPYALL /R:1 /W:1 /V /NDL /MT:20 /LOG:<location&name>.log /TEE
/XO – Excludes files from <source> that are older then the <destination> files.
/ZB – Uses Restart mode. If access is denied, this option uses Backup mode.
/E – Copies subdirectories. Note that this option includes empty directories. For additional information
/DCOPY:T – Copies directory time stamps.
/COPYALL – All security information on files and folders are copied.
/R: – Specifies the number of retries on failed copies. The default value is 1,000,000 (one million retries).
/W: – Specifies the wait time between retries, in seconds. The default value of N is 30 (wait time 30 seconds).
/V – Verbose output showing skipped files
/NDL – Specifies that directory names are not to be logged.
/MT – Creates multi-threaded copies with N threads. N must be an integer between 1 and 128. The default value for N is 8.
/LOG:<LogFile> – Writes the status output to the log file (overwrites the existing log file).
/TEE – Writes the status output to the console window, as well as to the log file.
/FFT – if the two server have the different file systems, files are still re-copied, even though nothing has changed. You can use /fft switch, which makes the modify time comparison more tolerant (2 seconds granularity).

This way i increased the copy speed and i’m positive that the data is intact after the migration.

Use this info at your own risk.

/Mads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s