Recursively copying extended attributes on OS X
The most thorough way to copy a directory, especially a sensitive one that exerts your filesystem's abilities to its limits (ex. Backups.backupdb, or ~/Music/iTunes) on Mac OS X.
sudo rsync -Pa -EH /Volumes/Source /Volumes/Destination/
In this command, -P expands to --partial and --progress, and -a (--archive) to --recursive, --links, --perms, --times, --group, --owner, --devices, and --specials. All of the above are documented thoroughly in the rsync manpage.
Written by elliottcable
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mac os x
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#