LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   clone the whole linux using rsync (https://www.linuxquestions.org/questions/linux-server-73/clone-the-whole-linux-using-rsync-685400/)

cccc 11-22-2008 12:59 PM

clone the whole linux using rsync
 
hi

We'd like to clone the whole linux (RHEL 3) using rsync via SSH and resore on other machine with the same hardware.
Could someone explain pls how it works ?

btw. could rsyn clone MBR and Partition table as well ?

jstephens84 11-22-2008 08:15 PM

No rsync will not clone the mbr. But you could do a ./ on your rsync and it will copy all directories below ./ to the other machine.

so you would have
Code:

rsync -a / root@<host>:<dest directory>

kromberg 11-24-2008 04:00 PM

You do not want to do the entire root file system. For example /proc, /sys, /net would be bad.

sfjoe 11-24-2008 04:41 PM

Quote:

Originally Posted by cccc (Post 3351066)
hi

We'd like to clone the whole linux (RHEL 3) using rsync via SSH and resore on other machine with the same hardware.
Could someone explain pls how it works ?

btw. could rsyn clone MBR and Partition table as well ?


We've had good luck using kickstart to clone our CentOS machines:
http://www.linuxdevcenter.com/pub/a/...kickstart.html


All times are GMT -5. The time now is 05:41 PM.