the magic mac rsync flag

  • Fri 08 January 2016
  • misc

Apple's version of rsync on MacOS X has a documented-but-not-widely-appreciated "-E" flag.

  -E, --extended-attributes
          Apple  specific  option  to  copy  extended attributes, resource forks, and ACLs.  Requires at
          least Mac OS X 10.4 or suitably patched rsync.

As in this (between old mac and new mac over an ethernet cable):

rsync -avE rs@ .

Hope this helps (probably me, later, when I google for it and find something I wrote myself).