> > > Date: Sat, 2 Nov 1996 00:29:32 -0000 > > From: Nelson Posse Lago <[EMAIL PROTECTED]> > > To: Martin Stromberg <[EMAIL PROTECTED]> > > Message-Id: <[EMAIL PROTECTED]> > > In-Reply-To: <[EMAIL PROTECTED]> > > > Subject: Rearranging partitions WAS: Re: Question?? > > > find ./ | grep -v /mnt/ | cpio -pdmv /mnt > > Thank you! Wonderful syntax, and demo of several nuances that have > escaped me until this day. I got out the man pages for grep and cpio, > and decoded the above, to learn how it does what I correctly intuited it > would do. > > Could you briefly summarize why cp -a or tar -cvf are inappropriate or > less functional?
In my opinion they aren't any less functional. I've even read that "tar -cpf - /|(cd /mnt; tar -xpf -)" manages to avoid going into a loop with regard to /mnt! I haven't verified this but I'm not surprised - GNU software is the way to go! The con regarding "cp -a" is that it's GNU cp. Versions on other systems fuck up symbolic links e. g. The pro regarding tar is, there is one on every system, and combining two tars with pipes works everywhere (to my knowledge). This makes tar ideal for scripts that must work on all platforms. > Can an unmounted(*1) root filesystem be successfully > mirrored, identical to the original, on a target partition with a new > filesystem -- using cp -a or the tar -cvf (*2) method? The answer is yes. Both can do that. > > Christopher W. Hafey > ------------------------------------------------------------- > [EMAIL PROTECTED] | 1078 New Britain Ave Apt 217 > WA1TNR since 1974 | W Hartford Ct USA 06110-2434 > http://www.ntplx.net/~tingri | tel. 860-236-5400 > ------------------------------------------------------------- > (*1) mounted on /mnt or anywhere but /, I meant > (*2) and corresponding tar -xvf method, to extract as target > > --- Just opi(-um-)nions, MartinS -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]