Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2005 07:01:09 -0600
From:      Craig Boston <craig@xfoil.gank.org>
To:        freebsd-current@freebsd.org
Cc:        Stephen McKay <smckay@internode.on.net>
Subject:   Re: Heads up: gtar gone from base system
Message-ID:  <200503300701.09895.craig@xfoil.gank.org>
In-Reply-To: <200503301139.j2UBdMp5016442@dungeon.home>
References:  <20050327223238.GA749@polands.org> <20050329062550.GA69824@cirb503493.alcatel.com.au> <200503301139.j2UBdMp5016442@dungeon.home>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 30 March 2005 5:39 am, Stephen McKay wrote:
> Still, if you are using tar, be sure to use it correctly:
>
> ( cd srcdir && tar cf - . ) | ( cd destdir && tar xpf - )
>
> You don't want it going off in the current directory and mangling things
> just because of a little typo in a directory name.

I wonder, how does this compare to using cpio -p?

cd srcdir && find -d . -print0 | cpio -p -0d /absolute/destdir

(other than tar's syntax being easier to remember than cpio)

gtar used to have problems with truncating device nodes to 16 bits; not that 
it's as much of an issue in the modern era with devfs.

Craig



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503300701.09895.craig>