Bill Jonas on Mon, 2 Apr 2001 17:10:14 -0400

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Using tar to copy disk drives...

On Mon, Apr 02, 2001 at 04:36:33PM +0000, qumak wrote:
> Hey, I know, we've discussed this before, and I'm sorry, but I can't seem to 
> remember quite how to do it and its giving me some wierd problems... -- specifically,

In your case, I'd try something like the following:
(cd / && tar cf - $(ls -1 |egrep -v "mnt|proc") ) | (cd /mnt && tar xvfp -)

(You don't want to get /proc, either.)

Or specify which directories you want (I'm going by the list of errors you
(cd / && tar cf - admin bin boot c d dev etc home lib lost+found misc net opt plugins proc root sbin sview test.test tmp usr ut.tar.gz utmp.dpfs var) | (cd /mnt && tar xvfp -)

Bill Jonas    *    *
"As we enjoy great advantages from the inventions of others,  we should
be glad of an opportunity to serve others by any invention of ours; and
this we should do freely and generously."          -- Benjamin Franklin

Philadelphia Linux Users Group       -
General Discussion  -