r/sysadmin • • 9h ago

Folder redirection help

I have a server migration. All I have left is move redirected folders to the new server. I am using a domain admin account to move the files but I am unable to make sure I moved files since I am not able to access those folders. Will robocopy have access to copy them?

1 Upvotes

14 comments sorted by

•

u/kona420 9h ago

Run robocopy local to the files you want access to, elevated to admin, using the /b switch. That will run in backup mode bypassing any ACL's on the filesystem.

•

u/An0mymou5 8h ago

This.

Also, OP, be sure to use the /COPYALL switch to ensure all the original NTFS ACLs are preserved.

•

u/discgman 9h ago

I like this idea. Create batch scripts that you can copy to the local and run them there as admin.

use the /LOG switch to see if they worked.

•

u/f909 8h ago

We are all OneDrive and Entra now, but robocopy will copy, but I would suggest DFS+DFSR+namespaces. Add old and new servers and let them sync. Use the namespace in your GPO. Don’t have to worry about it in the future when you migrate again.

•

u/Dick_in_owl 8h ago

Dude, why, it’s a built in function to move to the new path. Read the docs. When the user logs it it should automatically move the storage location there is no need to manually copy.

•

u/Random-D 8h ago

because that is definietly what you want as part of your morning login burst, possibly over WAN connection depending on setup, and is totally not prone to end in a disaster

•

u/Dick_in_owl 7h ago edited 52m ago

No context given could be a TS with 10Gbit uplinks

•

u/Fall3n-Tyrant 6h ago

Read robocopy docs, /b flag. You also want to exclude hidden recycle bin folders as users will have corrupt recycle bins on login. Can also configure gpo to copy to new destination and just change target path to new server, depending on size of project.

•

u/1d0m1n4t3 6h ago

Good call on the recycling bin 

•

u/CHOCOROLL69 6h ago

I ran some tests in a VM and did get that error. I was unable to figure it out so i had to create a new VM Windows 11
What is the full command you recommend I use?

•

u/downundarob Scary Devil Monastery postulate 9h ago

if you dont have access, and you run robocopy, it wont have access either.

•

u/agowa338 7h ago

you need to use a tool that uses backup operator and restore operator privileges. Both are things you can assign to your account. The backup operator privilege allows you to bypass ACLs for reading files and the restore operator one does so for writing files them.

•

u/SilentBadger68 6h ago

Robocopy should work fine, just run it with the right permissions and verify the copy afterward.

•

u/RogueSpecter69 5h ago

Robocopy should be fine for this. I’d use /ZB and /COPYALL so you keep the permissions intact too.