file server migration robocopy

eg1995 1,131 Reputation points
2021-01-27T08:36:10.547+00:00

dears,

i have a file server with two disks each one 1 tb running on ws2012 and i want to migrate it to 2019.
i know that i should be using robocopy cmd to retain the security permissions but if within it the server i have some folders shared what will happen?

and please can u give me the exact robocopy coomand to use.
in addition, if you can mention the cutover too when i have to resync again for the delta changes
thank you so much

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,958 questions
Windows Server Storage
Windows Server Storage
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Storage: The hardware and software system used to retain data for subsequent retrieval.
633 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Mico Mi 1,921 Reputation points
    2021-01-28T02:18:14.64+00:00

    Hi,
    Robocopy will not copy share permissions.
    To copy share permissions, please check the following steps:

    1. On your old server, open Registry Editor.
      HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Services>LanmanServer>Shares
      Right-click the Shares key and select “Export” it to a file and then copy the file you exported from the old server to the new server.
    2. Go to your new server and right-click the registry file and select “Merge”. All the share information will be imported to your new server. If the new server uses the same drive letter, then just restart the server.
    3. If the new server uses a different drive letter compared to the old server, you need to open Registry Editor:
      HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Services>LanmanServer>Shares
      Double click the share and then locate the section labelled “path” and change the drive letter to the one of your new file server.
      (You will need to do this for each share that needs a change of drive location. Once completed, please restart the server again.)

    Note: the new server has to be essentially identical to the old in terms of where the files are and what partitions they live on.

    Here is a guide of robocopy cmd for you to check:
    https://adamtheautomator.com/robocopy-the-ultimate/#Common_Robocopy_Syntax_Reference

    Thanks for your time!
    Best Regards,
    Mico Mi

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. eg1995 1,131 Reputation points
    2021-02-01T08:04:30.1+00:00

    can you please give me the full command that keeps the permissions?

    thanks

    0 comments No comments

  3. Mico Mi 1,921 Reputation points
    2021-02-01T08:26:27.56+00:00

    Hi,
    Please try:
    ROBOCOPY /Mir <Source> <Target>
    ROBOCOPY /E /Copy:S /IS /IT <Source> <Target>
    The first Robocopy command above will copy data and security for files that have been updated, and the second Robocopy command will refresh file security for all files, without copying any file data.

    Or try the command to retain all permisions, ownership & timestamps of the entire folder structure and data (source):
    robocopy source destination /E /ZB /DCOPY:T /COPYALL /R:1 /W:1 /V /TEE /LOG:Robocopy.log

    Thanks for your time!
    Best Regards,

    Mico Mi

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments