tar and extended attributes

Discussion in 'OS X Mavericks (10.9)' started by funkytwig, Jan 17, 2015.

  1. funkytwig macrumors member

    Jan 14, 2011
    I read it was possible now to include extended attributes in tar archives and that you needed to add a flag to the tar command but it did not say what the fag was. Anyone know what flage I need?
  2. alex0002, Jan 19, 2015
    Last edited: Jan 19, 2015

    alex0002 macrumors 6502

    Jun 19, 2013
    New Zealand
    To the best of my knowledge, this feature of including the extended attributes is default behaviour in os x tar.

    Just create the tar archive with 'normal' options.

    tar cvf test.tar file1 file2
    Then copy the tar archive to another folder or another Mac and extract the files.

    tar xvf test.tar
    The extended attributes should be preserved.

    More info:

Share This Page