Robocopy file share migration with full at first and then only changes

Hello EE,

We are migrating our file server and need to maintain shares and permissions.  The first I am looking at doing a full copy to see how long it takes with retaining all time stamps, permissions and shares:

robocopy "\\server\share" \\server\share /zb /MT /mir /copyall /dcopy:T /V /tee /LOG+:C:\robocopy\log.txt /r:3 /w:240

It's been a while since I've used this so want to make sure if I am missing anything.
I would then like to migrate only changes, but am not clear how to edit the above.  Any input would be great.
operationsITAsked:
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.

NVITCommented:
You would keep using the /MIR switch, which covers changes, i.e. new files, changed files, deleted files.
What you have should be fine. I would change the /LOG to a different filename so I could compare later
0

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
Shaun VermaakTechnical Specialist/DeveloperCommented:
I would add /XO otherwise it will overwrite changed files in target and not use /MIR because it adds deletions which is not a good idea during migrations
0
NVITCommented:
@ Shaun,

I would then like to migrate only changes,
I may be wrong but I presumed the author considers the source as authoritative, that's why I said to use /MIR.
0
Shaun VermaakTechnical Specialist/DeveloperCommented:
My comment wasn't a response to your recommendation to use /MIR, rather a comment to the /MIR in the question ;)

I am not trying to discredit you, just saying that I would not use it because of past experiences
0
NVITCommented:
Solution given.
0
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
File Sharing Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.