Centos 7 - How to clone a sever using rsync

mar

bitcoin is freedom
Staff member
Joined
Jan 14, 2015
Messages
392
Points
28
Credits
56,309,851
Bronze Usergroup
Username Style
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:



 
Last edited:
The Biggest Websites- The Biggest, Largest, Best, Most Popular Forums and Message Boards Top List on the Internet.

Number of visitors since November 2018: