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 |