I'm doing a NAS data migration from a Celerra NS960 to a Unity 500. I have an SMB/CIFS file system I synced using EMCOpy in Windows environment. It's also an NFS (multiprotocol) file system. I have both file systems mounted on a Solaris 10 UNIX server can I just rsync the permissions only from the NS960 to the Unity and not have all the data copy again?
Interestingly, the question in the linked possible duplicate (which, IMO isn't a dup) gives the clue to an answer that will work for you if you have GNU coreutils that includes
cp doesn't have the
--attributes-only option so you can't use this "out of the box".
cp -a --attributes-only srcdir/. dstdir
As answered elsewhere, how does:
rsync -ptgo -A -X -d --no-recursive --exclude=* first-dir/ second-dir
not achieve the goal?
-p, --perms preserve permissions -t, --times preserve modification times -o, --owner preserve owner (super-user only) -g, --group preserve group -d, --dirs transfer directories without recursing -A, --acls preserve ACLs (implies --perms) -X, --xattrs preserve extended attributes --no-recursive disables recursion
--no-OPTION turn off an implied OPTION (e.g. --no-D) -r, --recursive recurse into directories