[wplug] Backing up (cloning) to a smaller drive...
Jonathan Billings
billings at negate.org
Mon Aug 13 21:07:41 EDT 2007
Bryan J. Smith wrote:
> Learn to use dump in/out pipe (as well as tar pipe or find|cpio
> passthru). It is very, very useful when you start dealing with
> moving network filesystems. It's UNIX sysadmin 101, and it's easy
> once you get used to it.
You could either mount the second disk on the first machine, as I talked
about earlier, or use dump with ssh pipes.
Boot the new machine with a boot CD like knoppix, all it needs is the
ext3 restore and ssh and something to create the LVM volume.
Then run something like this (As root):
(create /dev/New/Root with lvm tools)
...
mount /dev/New/Root /mnt/newroot
cd /mnt/newroot
ssh root at oldmachine "/sbin/dump 0f - /" | /sbin/restore rf -
if you can't ssh in as root, then do something like this:
ssh you at oldmachine "sudo /sbin/dumo 0f - /" | /sbin/restore rf -
Or, if you don't like using ssh pipes, just use rsync. It won't
preserve atime and other extended attributes like dump/restore.
--
Jonathan Billings <billings at negate.org>
More information about the wplug
mailing list