1 |
On Fri, 2007-06-08 at 17:48 +0200, Alan McKinnon wrote: |
2 |
> What the OP *will* have a problem with a copying /proc, /dev, /sys |
3 |
> and |
4 |
> other virtual filesystems. When I do this trick, I usually dd or tar |
5 |
> or |
6 |
> cp -a entire filesystems and then copy / with this trick: |
7 |
> |
8 |
> mount -o bind / /some/tmp/dir |
9 |
> cp -a /some/tmp/dir /some/other/dir |
10 |
> |
11 |
> This ensures that only files actually on-disk are copied |
12 |
|
13 |
You could also pass, '-x' to cp and rsync or '--one-file-system' to tar. |
14 |
|
15 |
-- |
16 |
Albert W. Hopkins |
17 |
|
18 |
-- |
19 |
gentoo-user@g.o mailing list |