copy 800GB with Robocopy

Hi Experts,

I have to migrate a huge data folder to my new NETAPP storage.
in the past I used robocopy for it.
Is it possible to use robocopy and start the copy and later I just can do the delta files ?
which command can I use ?
Can I use /mir or does it delete files in the source folder ?

What about this command ?

robocopy \\source \\dest /mir /copyall /njh /np /v /L

Open in new window

Eprs_AdminSystem ArchitectAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
The command is correct if you leave out /L. That only lists the files, but doesn't do anything.
/MIR deletetes files in the target folder. The source is never changed.
You might want to add /Z to allow for restarting the transfer of partitially copied file (without, the file will be copied completely again if interrupted).
If files can be in use, or permissions might not allowing access. add /R:5 /W:1 to allow for 5 attempts waiting 1 second for each, for every file to copy. If you do not provide those options, RoboCopy tries to copy the file until it succeeds.

You can start and stop the copy at any time. Of course checking for changes of a lot of files takes some time, so an interrupted and restarted RoboCopy might need several minutes until it seems to start doing something.
Eprs_AdminSystem ArchitectAuthor Commented:
ok thanks.
When I restart the job and I use the same command, with MIR, all files deleted again in the source DIR ?
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Nothing gets deleted in the source dir.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Eprs_AdminSystem ArchitectAuthor Commented:
sorry I meant in the dest folder.
I have to start the command several times because of delta files.

What about the /MIR ? It deletes always the destination files ?
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
/MIR compares the destination folder with the source folder. If it finds a file not existing anymore, it is removed. The /MIR does not delete all files. As I said, you can start and stop the copy at any time, without having much impact.

If you just need to throttle the copy, e.g. so it does not eat up to complete bandwidth, you can add /IPG:50 to add 50ms delay between network packets.

In any case you should add /DCOPY:T, which I forgot to include. This takes over the time stamps of folders (instead of setting them to the current date).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eprs_AdminSystem ArchitectAuthor Commented:
is /DCOPY:T also included in COPYALL ?
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Nope. /COPYALL only refers to the files' data, folders are created (not copied) and hence get a different timestamp without /DCOPY:T
Eprs_AdminSystem ArchitectAuthor Commented:
ok thanks.
I will start my migration tonight.
Eprs_AdminSystem ArchitectAuthor Commented:
why this copy job takes ages ?

robocopy \\source \\dest /mir /copyall /njh /np /v /Z /DCOPY:T /R:5 /W:1
Eprs_AdminSystem ArchitectAuthor Commented:
I am sitting here since 6 hours for a delta of 300GB
Eprs_AdminSystem ArchitectAuthor Commented:
is it because of /MIR and comparing files ?
I have 1,5 million files in the folders
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
You should see some progress in any case. Maybe you should remove the /np to have more info.
Having that much files will certainly slow down operation, in particular if not having many folders.
Eprs_AdminSystem ArchitectAuthor Commented:
ok thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.