Re: Duplicating a file system

Marty Leisner (leisner@sdsp.mc.xerox.com)
Mon, 11 Mar 1996 10:08:32 PST


> In message <Pine.LNX.3.91.960309093124.145A-100000@marvin.mars.org>, Bill Power
> s writes:
> > On Fri, 8 Mar 1996, Joel Young wrote:
> >
> > This will also work: Assuming the partitions are mounted as /From/Dir and
> > /To/Dir:
> >
> > (cd /From/Dir ; tar cf - . ) | (cd /To/Dir ; tar xvfp - )
>

Also look at tar -C /From/Dir -cf - . | tar -C /To/Dir -xvf -

I'm not a really big fan of this nonintuitiveness (it certainly
wasn't when I learned it...)

I really favor
cp -av <from dir> <to dir>

-- 
marty
leisner@sdsp.mc.xerox.com  
Member of the League for Programming Freedom