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 |