December 18, 2009

cpanel restore

restore

mount /dev/hdb3 /old

rsync -vrplogDtH /old/usr/local/apache/conf /usr/local/apache
rsync -vrplogDtH /old/var/named /var
rsync -vrplogDtH /old/home/* /home
rsync -vrplogDtH /old/usr/local/cpanel /usr/local
rsync -vrplogDtH /old/var/lib/mysql /var/lib
rsync -vrplogDtH /old/var/cpanel /var
rsync -vrplogDtH /old/usr/share/ssl /usr/share
rsync -vrplogDtH /old/var/ssl /var
rsync -vrplogDtH /old/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty
rsync -vrplogDtH /old/var/log/bandwidth /var/log
rsync -vrplogDtH /old/usr/local/frontpage /usr/local
rsync -vrplogDtH /old/var/spool/cron /var/spool
rsync -vrplogDtH /old/root/.my.cnf /root
rsync -vrplogDtH /old/etc/httpd/conf/httpd.conf /etc/httpd/conf
rsync -vrplogDtH /old/etc/sysconfig/network /etc/sysconfig


----------------- step 2


cd /old/etc

rsync -vrplogDtH secondarymx domainalias valiases vfilters exim* proftpd* pure-ftpd* passwd* group* *domain* *named* wwwacct.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl hosts /etc


----------- step 3


/scripts/upcp; /scripts/updatenow; /scripts/sysup; /scripts/fixeverything; /scripts/exim4


------ step 4

No comments:

Post a Comment