On Sun, 8 Feb 1998, Craig Sanders wrote:

> On Sun, 8 Feb 1998, Hamish Moffatt wrote:
> 
> > I'm having a nightmare trying to copy my root file system to its new
> > home. If I mount the original as / and the new one as /mnt, both
> > 
> > cp -ax /* /mnt
> > 
> > and 
> > 
> > ( cd /; tar clvf - * ) | ( cd /mnt; tar xf - )
> > 
> > attempt to copy /mnt anyway, and /proc too. ie, the -x and -l switches
> > to cp and tar respectively appear to be ignored.
> 
> that's because you're TELLING cp and tar to copy /mnt.  * matches
> everything, remember...so cp -af /* /mnt means copy everything in /
> (including /mnt) to /mnt.

Everything except filenames starting with a dot... 

Try "echo *" vs. "echo * .*" in your $HOME and notice why you should never
backup you home dir with "cd ~ ; tar c *" (made this mistake myself once.) 

Cheers,


Joost


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to