How to copy share folds/files from one server to other without affecting share permission using robocoy command?
Question
robocopy (Robust File Copy), is a file replication command for Microsoft Windows. Robocopy functionally replaces Xcopy, with more options. Created by Kevin Allen and first released as part of the Windows NT 4.0 Resource Kit, it has been a standard feature of Windows since Windows Vista and Windows Server 2008.
in progress
0
General
3 years
2022-03-11T17:57:57+00:00
2022-03-11T17:57:57+00:00 1 Answer
264 views
1
Answer ( 1 )
The example below show you how you can copy/migrate files/share folders included access permission from SERVERA to SERVERB.
STEP 1: Make sure that you migrated all users and security groups from old server (SERVERA) to the new server (SERVERB) first
STEP 2: Use robocopy cmd below with appropriate parameters to full successfully migrate files/share folders:
robocopy “\\SERVERA\D$\Data\” “\\SERVERB\D$\Data” /MIR /SEC /SECFIX /R:1 /LOG:C:\Data\Log.txt
Switches descriptions: