Link to home
Create AccountLog in
Avatar of samiam41
samiam41Flag for United States of America

asked on

Migrate file structure only from 2012 to 2022 server

Hey everyone!  Starting a Windows server 2012 file server migration to Windows server 2022 (office is in an AD environment).  I want to copy over the file structure first so I could fix a few permission issues after the structure is up on the new server.  xcopy seemed like the right fit but I'm open to suggestions.


Two parts to this question.  First, I want to copy the login directory which contains 50+ subdirectories.  What would that command be?  I tried this and received the "invalid drive specification" since the login directory didn't exist on the new server yet.  How to copy it over then as using \\windows2022\e$ /t /i /e /o /y did work but dumped everything in the login dir into the e$ admin share.


xcopy \\windows2012\login \\windows2022\e$ /t /i /e /o /y


Second part, using the command above copies the directories but not the acl (thought that was the /o switch).


I appreciate your help getting a solution that completes this stage of the project.  If you suggest a different approach (like powershell), please be available for questions as I have even less experience with that scripting language.


Thanks everyone.

ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of samiam41

ASKER

Thanks @arnold.  


To understand this better, I enable DFS-replication on both servers and once the migration is complete, I would remove the "reference" server (2012 server) and leave DFS-replication running on the 2022 server?

You could.
The advantage of DFS-repkication (with the caveats of what it commonly does not copy temp, .bak files, but can be adjusted.)
It will continue to synchronize the data as it changes on the source.

To do it manually you have to repeatedly rerun to capture the change with a final one offer you cut over access.

Using robocopy with a full backup  to pre-stage...

Why did this get deleted?

What got deleted?

Thank you all!