Last updated on March 13, 2019
You have 2 CentOS machines. 1st is some important server with data and running services, 2nd is CLEAR CentOS.
To make clone process more efficient and do not loose any data it is recommended to stop all the important running services (mysql, apache, etc…) on source machine
- Install rsync on both source and target machines
yum install rsync
- Backup and overwrite these files on destination server:
/etc/fstab /etc/grub/grub.conf /boot/grub.conf
- Start the operation with Rsync from the source machine to the destination machine
rsync -av —exclude='/proc' —exclude='/sys' / ip.destination.machine:/
- After process is finished check backup files from step 2. Edit boot device if needed, change UUID in /etc/fstab and restore if needed
- Reboot destination machine
- If you are getting “Dracut error” after reboot then reboot to rescue mode and execute
dracut -f
- Wait while process is finished, reboot again. Done