Howto move a 13GB filesystem on80GB into a 20GB

Robert Brockway rbrockway-wgAaPJgzrDxH4x6Dk/4f9A at public.gmane.org
Fri May 12 17:27:00 UTC 2006


On Fri, 12 May 2006, Alex Marandon wrote:

> I had to do that recently and I used rsync with its -a option which

I wouldn't use rsync for that.  It is _really_ slow in comparison to the 
alternatives.

The canonical answer is "tar" but alternatives include cpio or even dump. 
For XFS the recommended solution is xfsdump.

For tar it is worth using -X.  Eg:

tar -X /tmp/exclude.file -cf alldata.tar /

/tmp/exclude.file should include, as a minimum:

/cdrom
/floppy
/mnt
/proc
/tmp
/var/tmp

Stop reading here unless you're really keen :)

It is possible to pipe data directly from one tar to another, even over 
ssh, to avoid the need to create a seperate tar file.  More info here:

http://www.opentrend.net/movingfilesystems.shtml

These instructions are a bit scanty, I need to add to that.  The exact 
syntax has varied between different versions of Gnu tar as well.

Cheers,

Rob

-- 
Robert Brockway B.Sc.        Phone:          +1-905-821-2327
Senior Technical Consultant  Urgent Support: +1-416-669-3073
OpenTrend Solutions Ltd      Email:          support-wgAaPJgzrDxH4x6Dk/4f9A at public.gmane.org
                              Web:            www.opentrend.net
We are open 24x365 for technical support.  Call us in a crisis.
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list