Migration: Using Robocopy flags

On November 25, 2009, in Migrationextras, by

One of the things I added to David Overton’s robocopy script to copy and move permissions from one server to the other is this extra flag:


What it does is copy over and leave intact the date time stamps on the copied over folders.  So that rather than stamping them all the date of the migration (which is what I did last time nearly five years to the date), this time I’m maintaining the date stamp info.

I also added an A to the /COPY:DATSOU

D = copy the data

A = copy the attributed

T = Copy the timestamps on the individual files

S = Copy the securtiy ACLs

O = Copy the ownership info

U = Copy the Auditing info


2 Responses to Migration: Using Robocopy flags

  1. Scott says:

    Love robocopy here…
    /COPYALL is equivalent to /COPY:DATSOU
    For all my daily file backup to USB I use: /MIR /COPYALL /W:0 /R:0 /TEE /NP /LOG+:%BakLog% which creates a perfect mirror of the source.

  2. Dean says:

    Don’t forget about Richcopy. It pretty much replaces Robocopy.