These commands are on the main server and not the one you are cloning
sudo yum install rsync
vi /root/exclude-files.txt
/boot
/dev
/tmp
/sys
/proc
/backup
/etc/fstab
/etc/mtab
/etc/mdadm.conf
/etc/sysconfig/network*
sudo rsync -vPa -e 'ssh -o StrictHostKeyChecking=no' --exclude-from=/root/exclude-files.txt / REMOTE-IP:/
source:
sudo yum install rsync
vi /root/exclude-files.txt
/boot
/dev
/tmp
/sys
/proc
/backup
/etc/fstab
/etc/mtab
/etc/mdadm.conf
/etc/sysconfig/network*
sudo rsync -vPa -e 'ssh -o StrictHostKeyChecking=no' --exclude-from=/root/exclude-files.txt / REMOTE-IP:/
source:
How to Clone or Duplicate a Linux Server with Rsync
Cloning is the meticulous process of creating an exact replica of a live Linux server by employing the powerful rsync command-line tool.
www.tecmint.com
Last edited: