moving "/"

Tony Sequeira tony at sequeira.com
Mon Sep 8 08:48:20 PDT 2003


On Mon, 08 Sep 2003 16:39:04 +0100 (BST), "Tony Sequeira" wrote

> 
> On Mon, 8 Sep 2003 16:37:11 +0100, "Declan. Moriarty" wrote
> 
> > 
> > 
> > I had a recent need to try this, and here's some of the suggestions
> > 
> [...]
> > 
> > tar -C $sourcedir -cf - | tar -C $destdir -xf, as in
> > 
> > root:~#tar -C /var  -cf - | tar -C /mnt -xf
> > tar: Cowardly refusing to create an empty archive
> > Try `tar --help' for more information.
> > tar: option requires an argument -- f
> > Try `tar --help' for more information.
> > 
> > Syntax?
> 
> What I do is:
> 
> $ ( cd $sourcedir && tar cf - ) | ( cd $destdir && tar xvf - )

That is:

cd $sourcedir && tar cf . (note the dot)

> or *very* similar (off the top of my head), I'm at work.
> 
> [...]
> 

You should also probably look at omitting the /proc and /tmp dirs.

Cheers

-- 
Tony



More information about the blfs-support mailing list