rsync clone your server

rsync -acHv –numeric-ids –force –delete -e ‘ssh -c blowfish’ –exclude ‘backups/’ /bin /boot /etc /home /lib /lib64 /opt /root /sbin /usr /var remote_server.tld:/

dracut –verbose –force /boot/initramfs-kernel-version kernel-version

grub-install /dev/sda

tar cf /etc.tar /etc
tar cf /boot.tar /boot

cd /
tar xvf /etc.tar etc/sysconfig/network
tar xvf /etc.tar etc/sysconfig/network-scripts/ifcfg-eth0
tar xvf /etc.tar etc/udev/rules.d/70-persistent-net.rules
tar xvf /etc.tar etc/fstab
tar xvf /etc.tar etc/mtab
tar xvf /etc.tar etc/mdadm.conf
tar xvf /boot.tar boot/grub/grub.conf
tar xvf /boot.tar boot/grub/menu.lst
tar xvf /boot.tar boot/grub/device.map

Leave a Reply

Your email address will not be published. Required fields are marked *