HCHTech
Well-Known Member
- Reaction score
- 4,142
- Location
- Pittsburgh, PA - USA
I have a client that was running out of space on their server last year, and as a stop-gap measure, we created an archive directory on their Synology NAS (used as a backup target). There was plenty of space on the NAS, and after moving about 300Gigs of old files, the server had breathing room again. We're setting up the replacement server now, and I'm trying to copy those archive files BACK from the Synology to the new server. Robocopy will get some of the files, but 70% of them fail with "access denied" errors.
Removing the normal "/copy
ATSOU" flag I use from the robocopy script didn't help, and just playing around trying to drag files with the Windows explorer GUI basically tells me the permissions are scrambled in some fashion. If I right-click on one of the folders from Windows and choose properties, I see the "Read Only" box with a black square in it (rather than a check mark), and the security tab shows "Account Unknown (S-1-5-21-1831.....)" in the list of users. I can reset the owner to the administrator user on the server without error, but I still cannot copy the files. Disabling inheritance and manually changing the owner and effective access users from the Advanced security dialog similarly completes without error, but doesn't help the problem.
The Synology is formatted in their btrfs format, which may be the source of the whole problem, I don't know. I think I normally use EXT4 when setting up a Synology.
I have tried: changing the permissions on that folder from the Synology OS, I've tried taking ownership of that folder from the Server OS, I've tried creating the same user & password in Active Directory as the user/password combination on the Synology, I've tried mapping that folder to a drive letter then running "takeown /f z:\ a r d y". I've tried running "icacls "full path of folder or drive" /setowner "Administrators" /T /C", which, like the other things, completes without error, but I still cannot copy the files. There are a couple of hundred thousand files altogether, so whatever solution I use has to be scripted. There are too many random levels of subfolder and files here to do anything manually.
Suggestions welcome - is there anything I've forgotten?
Removing the normal "/copy

The Synology is formatted in their btrfs format, which may be the source of the whole problem, I don't know. I think I normally use EXT4 when setting up a Synology.
I have tried: changing the permissions on that folder from the Synology OS, I've tried taking ownership of that folder from the Server OS, I've tried creating the same user & password in Active Directory as the user/password combination on the Synology, I've tried mapping that folder to a drive letter then running "takeown /f z:\ a r d y". I've tried running "icacls "full path of folder or drive" /setowner "Administrators" /T /C", which, like the other things, completes without error, but I still cannot copy the files. There are a couple of hundred thousand files altogether, so whatever solution I use has to be scripted. There are too many random levels of subfolder and files here to do anything manually.
Suggestions welcome - is there anything I've forgotten?