Gentoo Archives: gentoo-user

From: Kyle Bader <kyle.bader@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] When copying an os to new disk
Date: Fri, 26 Feb 2010 18:14:17
Message-Id: 854dca5c1002261013x34878cadq684a2748f2b0204a@mail.gmail.com
In Reply to: Re: [gentoo-user] When copying an os to new disk by Alex Schuster
1 >> tar cf - $old_dir | ( cd $new_dir: tar xf - )
2 >> tar cf - $old_dir | ssh $other_host "( cd $new_dir: tar xf - )"
3 >                                                    ^
4 > The ':' separating commands should be a ';'. Using the -C option would be
5 > a little easier, but your method also would work for star. This piping
6 > through ssh is quite cool, isn't it.
7
8 whoops, good catch!
9
10 > If $old_dir is the root partition, I would bin-mount it first to somewhere
11 > else, so other directories mounted to it (especially/dev, /proc and /sys)
12 > are not copied:
13 > mount -o bind / /mnt
14 > old_dir=/mnt
15
16 that too, copying over /proc/kcore is never fun ;P
17 --
18
19 Kyle