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

Takami Chiro 66 Reputation points

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.
9,504 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 37,771 Reputation points

    Hello Takami C,

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

    Check it out:

    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

    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