Small Business Susan

Migration: Using Robocopy flags


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:


/DCOPY:T


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 comments ↓

  • #   Scott on 11.26.09 at 6:38 am     

    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.


  • #   Dean on 12.13.09 at 3:23 am     

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