I have a network drive with files that need to move to a new Synology NAS SMB network share. I'd like to transfer the files while keeping as much properties as possible.
I tried robocopy and fastcopy, but these tools don't do the trick. The permissions (in a domain) are altered based on the settings in the Synology share settings and the owner is changed to my admin account.
Can I prevent that modification?
Linux (based) fileservers do not have a filesystem with ACLs like windows does (with NTFS or ReFS). You simply can not keep all your NTFS-Settings like ACLs, Junctions, Filestreams or extended attributes on a non-NTFS filesystem.
Most Linux FS expose the POSIX attributes (OWNER, GROUP, RIGHTS). If you have more than one group entry, you'd have to greate one group for each and every ACL-Kombination.
But you can export your NFTS ACLs. Use this command to backup you NTFS permissions:
The /T switch allows it to get subfolder permissions too. The /C switch allows it to continue even if errors are encountered. Errors will still be displayed.
Use this command to restore them:
Note that in the command to save the permissions there is no slash. Here you can read why this is important.