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

Re: [linux-lvm] lvm'ing root fs



On Mon, Apr 10, 2000 at 09:21:32PM -0700, Peter C. Norton wrote:
> Looking at that a second time, you may be better off adding the "-type f"
> flag to find so you don't include /usr, etc.
> 
> On Mon, Apr 10, 2000 at 08:43:58PM -0700, Peter C. Norton wrote:
> > You may want to do the following:
> > 
> > cd /; find . -xdev -print | xargs tar -cf - | (cd /mnt/root_vg; tar -xf -)

If you want to use tar the easiest way is to use is probably in the Tips-HOWTO:

2.6.  Moving directories between filesystems. Alan Cox, A Cox swansea ac uk 

    Quick way to move an entire tree of files from one disk to another

   (cd /source/directory && tar cf - . ) | (cd /dest/directory && tar xvfp -)

HTH

	Torsten


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