Robocopy from Windows 2003 to Windows 2008 servers


We are moving our file servers from Windows 2003 to Windows 2008. We are using robocopy to move about 4TB of data. We are using this command to do copy..

robocopy "\\fileserver\files" "E:\files" /S /E /SEC /COPYALL /MIR /Z /V /NP /LOG+:"c:\log\files.log" /Z /R:1 /W:1

this works in copying data and ACL everything.. but now I want to just copy new and changed files and folders and I want to merge ACL from the old file and new ACL we have setup on new file server. Currently it is removing New ACL we have setup on new server.
Who is Participating?
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.

You need the:

/MON:x [x number of changes]

Keep your existing script and add the switch above, might need to restart the copy activity.

You can also use the:

/MAXLAD:n :: MAXimum Last Access Date - exclude files unused since n.
/MINLAD:n :: MINimum Last Access Date - exclude files used since n.
             (If n < 1900 then n = n days, else n = YYYYMMDD date).

To identify and back up only files that have changed since last copy.

I also prefer to use /ZB as opposed to just /Z
/s is redundant if you're using /e; when using /mir, /e is redundant as well, because /mir is the same as /purge and /e.
/sec is redundant if you're using /copyall, because /copyall includes security.
If your copy works with /r:1 /w:1, it means you have a stable connection, so you won't need /z; /z slows down the copy because of the additional overhead. /z is mainly required if the connection is unstable and the files to copy are rather large.
That said, if you don't want to copy permissions anymore, drop the /sec and the /copyall (and/or replace them with /copy:DAT, which is the default if nothing else is specified).
Note that robocopy will by default only copy files that re new or changed (based on file size and time stamp).
So change your command like that:
robocopy "\\fileserver\files" "E:\files" /copy:DAT /MIR /V /NP /LOG+:"c:\log\files.log" /R:1 /W:1

Open in new window

stghelpdeskAuthor Commented:
So you  saying think I my original script should have been.

robocopy "\\fileserver\files" "E:\files"  /COPYALL /MIR /Z /V /NP /LOG+:"c:\log\files.log" /Z /R:1 /W:1

This for my next server move. So my first copy will have all ACL and files and Folders.
Your first command was basically OK, it just had some redundancy to it. Robocopy doesn't care, but it can be confusing if you're using "/sec /copyall", then leave out the /sec, and wonder why permissions are still copied.

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
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
Microsoft Legacy OS

From novice to tech pro — start learning today.