Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] moving my instalation to new hard drive
Date: Mon, 24 Dec 2007 21:10:44
Message-Id: 20071224210302.46a1dd36@loonquawl.digimed.co.uk
In Reply to: Re: [gentoo-user] moving my instalation to new hard drive by Thanasis
1 On Mon, 24 Dec 2007 20:52:30 +0200, Thanasis wrote:
2
3 > mount -o bind / /mnt/src && cd /mnt/src && tar cfp - . |tar xfp -
4 > -C /mnt/dst && tar cfp - . |tar xfp -
5 > -C /mnt/dst
6
7 You don't need to mess around with bind mounting /, just do
8
9 cd / && tar clfp - ...
10
11 For that matter, the f option is redundant, as tar send to stdout by
12 default.
13
14 cd / && tar cp . | tar xp -C /mnt/dst
15
16 Even simpler...
17
18 rsync -ax / /mnt/dst/
19
20
21 --
22 Neil Bothwick
23
24 Top Oxymorons Number 18: Taped live

Attachments

File name MIME type
signature.asc application/pgp-signature