Messages in this thread | | | From | Bob Lanning <> | Subject | Re: Duplicating a file system | Date | Tue, 12 Mar 1996 19:37:12 -0800 (PST) |
| |
---- As written by Marty Leisner: > > > 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 > > >
I like (cd /From/Dir;find . -depth -print | cpio -pd /To/Dir) takes care of device files.
-- Robert Hajime Lanning "It's the FROSTING!" The opinions expressed here are not mine, nor are they anyone else's. lanning@tidbit.fhda.edu <--for fun && for profit--> lanning@cup.hp.com
| |