Migrating files and folders with Robocopy

Posted on 15th April 2009 by Niclas in Microsoft, Tools

An often task in every administrators daily job, is to migrate users files and folders f.x users home directories from one fileserver to another.

A great tool who most of the windows sysadmins is aware of or should be aware of, is called Robocopy.

Here is a simple command / script to accomplish a file server migration, keeping NTFS perssions etc. in tact;

“%~dp0\robocopy.exe” SOURCE DESTINATION /E /SEC /COPYALL /ZB /V /ETA /TEE /LOG:”%~dp0\FileMigration.log”

A little output of some of the many parameters you are able to apply to robocopy;
I used these for a simple User Home Directory migration from one fileserver to another.

…………

(more…)