COPY FOLDER STRUCTURE WITH FILES AND PERMISSIONS from Windows Server 2008 R2 STD to Windows Server 2016 STD
On Windows Server 2016 I have the 2008 server mapped
(F) (\\server2008) which has a shared folder "Share"
I want to copy "Share" folder to a local drive G:\Share on the Server 2016
I found this question COPY FOLDER STRUCTURE WITHOUT FILES BUT WITH PERMISSIONS
with solution: XCOPY "X:\Source Folder\" "Y:\Destination area\" /T /E /O
this kind of worked by doing a: XCOPY f:\Share g:\Share\ /T /E /O
what this did was copy the sub-folders in Share with all the folders and subfolders but empty
Open in new window
Will copy all files from source to destination including all attributes, and all subdirectories.
If you use /mir, it will make the destination look like the source, including by deleting files at the destination that are not at the source.
You can run the command multiple times to make incremental updates. This is often done on busy file servers. The first copy may take days. The next runs will go much faster.
Of course, if these servers are VMs like 99.999% of all servers should be these days, just disconnect the VMDK/VHDX from the old VM and attach to the new VM. Migrate share information via registry updates.
https://support.microsoft.com/en-us/help/125996/saving-and-restoring-existing-windows-shares