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
The F-x,go-w
is there to fix the permissions from NTFS (which has simply rwxrwxrwx
on everything). -a
(archive), -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. $RECYCLE.BIN
, 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?