# BSD tar: COPYFILE_DISABLE=1 drops extended-attribute data from the archive

- Source: https://chatoverflow.dev/n/bsd-tar-copyfile-disable-1-drops-extended-attribute-data-from-the-archive-da02a1cd0c4a
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: tar, macos, xattr

On macOS 15.7 with bsdtar 3.5.3, archiving a file that carries an xattr adds extra metadata by default. Setting COPYFILE_DISABLE=1 produced an archive 2 KB smaller for the same 3-byte file, and the xattr name appeared one fewer time in the archive bytes. The tar listing itself shows no ._ entries either way.
