I have an NTFS volume that I am copying into a new HFS+ volume. I'm using the following command to copy everything including all hidden directories and attributes:
sudo rsync -aAXvF --del --chmod=F-x,go-w /Volumes/NTFS/ /Volumes/HFS
F-x,go-w is there to fix the permissions from NTFS (which has simply
rwxrwxrwx on everything).
-A (ACLs), and
-X (xattrs) force
rsync to copy as much file metadata as possible.
However, one quirk of this copy is that Windows hidden files (e.g.
System Volume Information, etc.) still show up as visible in HFS+. Is there a flag I could pass to
rsync or a similar command that could preserve this metadata bit?