Re: Duplicating a file system

Bill Powers (wepprop@nettap.com)
Sun, 10 Mar 1996 14:48:25 -0600 (CST)


On Sat, 9 Mar 1996, Eric S. Mountain wrote:

> Joel Young ecrivit:
> > say other partition is on mount,
> >
> > cp -a / /mnt
>
> This will copy /mnt to /mnt/mnt. The problem is, that as /mnt gets
> filled by the cp, when cp starts copying /mnt to /mnt/mnt you will get
> the files that are in /mnt (i.e. those copied from / to /mnt so far)
> copied to /mnt/mnt. Ouch. If you get my drift...
>

If you're worried about that, how about:

cp -ax / /mnt

Bill Powers
wepprop@nettap.com
Linux: Resistance is futile...