Posted by: Nathan Simon
file migration, microsoft, new features, R2, robocopy, robocopy switches, smart file transfer, Windows Server 2008
Robocopy has been around for a long time, but there are 2 switches that you want to start incorporating into your scripts, they are /ZB and /DCOPY:T
/ZB :: use restartable mode; if access denied use Backup mode. When you use the /ZB option, this command uses Restart mode. If access is denied, this command uses Backup mode. Therefore, a user account in the Backup Operators group on a computer can run the command successfully.
/DCOPY:T :: COPY Directory Timestamps.This command will make sure that all timestamps for folders is retained, having archive folders with dates that do not make sense, will most definitely confuse the average end-user.
Adding these two switches to your existing scripts will help you migrate files and folders with confidence.