Clone CentOS 6.6 ?

Status
Not open for further replies.
4 comments
Solution

Hello!


First of all you should have identical version and architecture of installed OS on both servers (centos 6 86_64=centos 6 86_64)
Then rust run this command on olde server:


cd /
rsync -av 1.2.3.4:/ --progress --exclude=boot --exclude=etc/mtab --exclude=etc/fstab --exclude=etc/sysconfig/network \
--exclude=proc --exclude=sys --exclude=dev --exclude=etc/network* --exclude=*error*log --exclude=access*log


where:
1.2.3.4 - ip of the new server


It will copy all server data (and users and its password) but leave as is boot configuration, kernel and network configs.
 
also possible to do with centos 7 ? i tried cloning centos 7 and always fails to boot afterwards :/ what folders/files should be excluded?
 
Status
Not open for further replies.
Back
Top