Robocopy everything to another drive

Daisy Zhou 18,701 Reputation points Microsoft Vendor
2020-07-15T07:16:51.433+00:00

Its a Repository server with hundreds of shares having thousands of permissions granted to large number of AD security groups. I have to expand a MBR disk1 beyond 2TB on Windows 2016 VM. For that, I attached another GPT disk2 of 2.5TB and now have to migrate everything from disk1 to disk2.
Need help with Robocopy command to copy everything with all directory structure, security permissions, ACLS etc as it is on new disk.

Source link:
https://social.technet.microsoft.com/Forums/en-US/cef41acf-079c-40f6-9aa7-120cc2b8e47d/robocopy-everything-to-another-drive?forum=winserverMigration

Windows Server Migration
Windows Server Migration
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Migration: The process of making existing applications and data work on a different computer or operating system.
408 questions
0 comments No comments
{count} vote

Accepted answer
  1. Fan Fan 15,291 Reputation points Microsoft Vendor
    2020-07-15T07:18:54.39+00:00

    Hi,

    >Need help with Robocopy command to copy everything with all directory structure, security permissions, ACLS etc as it is on new disk.

    Please refer to the following command:

    robocopy <source path> <destination path> /Copyall /S /E /dcopy:T /b /R:3 /W:1 /Log:C:\robocopy-log.txt /NP

    And for detail information about Robocopy, please see the official document over here:

    https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy

    Please attention that robocopy cannot copy share permission. Share and share permissions are in the registry, not part of the file system. Robocopy handles NTFS permissions with the command noted. For shares, you need to copy registry entries.

    https://support.microsoft.com/en-us/help/125996/saving-and-restoring-existing-windows-shares

    Hope this can help you a bit.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful