Am Sonntag, 17. Januar 2010 schrieb Neil Bothwick:

> On Sat, 16 Jan 2010 23:40:44 +0100, YoYo siska wrote:
> > . If you are doing it this way (on a running system with mounted
> > dev/proc/sys...), you can just bind-mount your current / to another
> > directory. That "copy" will not contain any "sub-mounts" (as if you
> > accessed it from a livecd),
>
> Or you could simply use the -x option with rsync. But copying an in use
> filesystem is a bad idea, better to boot from a live CD and do the job
> there. If you want to minimise downtime, do the rsync on the working
> system then boot from the live CD and do it again. The second run should
> take seconds but will make sure your disk is consistent. Remember to use
> --delete on the second run.

I did it this exact way when I bought a new HDD for my laptop last Christmas, 
because then I could still use my normal system instead of booting a LiveCD 
and waiting for the sync to finish (which could take half an hour). Copying 
16GB from a laptop HDD to another one via USB is not that fast. Only before 
everything was done and I was ready to boot with the new HDD, I did another 
rsync with logged-out users on TTY1, which takes but a minute. IIRC I didn’t 
even boot a live CD.

And even IF there were some flaws in the mirrored system, there’d be no harm 
done as I have the original still around to amend them.
-- 
Gruß | Greetings | Qapla'
Crayons can take you more places than starships. (Guinan)

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to