[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] hard links and --transform
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] hard links and --transform |
Date: |
Thu, 19 Mar 2009 13:27:48 +0200 |
Wouter Verhelst <address@hidden> 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