star/ tar not saving extended attributes

General support questions including new installations
Post Reply
sudoyang
Posts: 41
Joined: 2005/05/19 19:03:40

star/ tar not saving extended attributes

Post by sudoyang » 2012/11/29 20:55:54

star and tar (redhat/centos flavor) have the ability to save the extended attributes. However, this doesn't seem to work when transferred via a pipe.

This works

tar --xattrs -cvf test.tar dirtobackup # this saves into test.tar
tar --xattrs -xvf test.ar # this extracts everything out of tar file again

However, through a pipe it doesn't work

tar --xattrs -cvf - dirtobackup | (cd destdir && tar --xattrs -xvf -)

The files get restored but the extended attributes are not preserved. Does anyone know why it's different when done through a pipe? Any idea how to solve this?

Thanks

Post Reply

Return to “CentOS 5 - General Support”