Wouter Verhelst <[email protected]> ha escrit:

> This works, but not for hardlinked member names. Consider the following:
> 
> hrwxr-xr-x root/root  0 2008-10-13 05:33 sbin/fsck.ext2 link to 
> tmp/tmp.cZSZPbrxok/sbin/fsck.ext4

You may apply transformation rules to hardlink targets, by specifying
the `h' flag:

  tar cvzf "$TARFILE" --transform "s,${basedir#/}/,,h" $basedir

This requires tar 1.21 or later.  See

  http://www.gnu.org/software/tar/manual/html_chapter/Choosing.html#IDX380

for more info on additional regexp control flags, provided by tar.

Regards,
Sergey


Reply via email to