Helps on robocopy - how to update changes after the first copy

Takami Chiro 66 Reputation points
2021-09-16T15:56:15.773+00:00

Hi everyone,

Hope you are all doing good.

I just start to think about using robocopy to copy folders/files from a windows 2012 file server server to 2022. I have not use it for long time. I would like to ask:

1.) What is the command to use so that all folders/files attributes such as NTFT permission and time stamp will be preserved?
2.) Let's say, I will make a full copy first. Then I will run a second copy to update those files/folders be updated by the users. This way I can reduce the restore "downtime". May I ask which command will let me copy the incremental changes?
3.) Anyway to migrate those shared folders by retaining their shared names and shared permissions?

Thank you for your help in advanced!

Takami Chiro

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,896 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,586 Reputation points
    2021-09-17T07:27:07.52+00:00

    Hello Takami C,

    This is the main reason why I always need to use Robocopy UI, always forget the parameters :)

    Check it out: https://learn.microsoft.com/en-us/previous-versions/technet-magazine/dd547088(v=msdn.10)?redirectedfrom=MSDN

    But all in all, for NTFS permission and shares: ROBOCOPY "\servername\sharelocation" "\newservername\newsharelocation" /MIR /SEC /LOG:location:\nameoflogfile.

    Hope this resolves your query!
    Best regards,

    0 comments No comments

  2. Takami Chiro 66 Reputation points
    2021-09-21T23:11:12.31+00:00

    HI LimiltlessTechnology,

    Thank you for the advise on the GUI. I will look into it. If I use /MIR will it erase any items on the source?

    Also, do you think /XO will be ok to update the changes only?

    Thank you for your help!

    Takami Chiro

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.