Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

funkytwig

macrumors member
Original poster
Jan 14, 2011
47
0
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?
 
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?

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.

Code:
tar cvf test.tar file1 file2

Then copy the tar archive to another folder or another Mac and extract the files.

Code:
tar xvf test.tar

The extended attributes should be preserved.

More info:
http://en.wikipedia.org/wiki/AppleSingle_and_AppleDouble_formats
http://apple.stackexchange.com/ques...osx-add-extra-filename-when-i-tar-a-directory
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.