*-* Just follow the given instruction *-* :--
*********************
# /etc User / IP's + passwd files
rsync -av --progress /oldhd/etc/passwd /etc/
rsync -av --progress /oldhd/etc/shadow /etc/
rsync -av --progress /oldhd/etc/group /etc/
rsync -av --progress /oldhd/etc/wwwacct.conf /etc/
rsync -av --progress /oldhd/etc/quota.conf /etc/
rsync -av --progress /oldhd/etc/domainalias /etc/
rsync -av --progress /oldhd/etc/remotedomains /etc/
rsync -av --progress /oldhd/etc/reservedipreasons /etc/
rsync -av --progress /oldhd/etc/reservedips /etc/
rsync -av --progress /oldhd/etc/secondarymx /etc/
rsync -av --progress /oldhd/etc/localdomains /etc/
rsync -av --progress /oldhd/etc/userdomains /etc/
rsync -av --progress /oldhd/etc/valiases /etc/
rsync -av --progress /oldhd/etc/vfilters /etc/
rsync -av --progress /oldhd/etc/vmail /etc/
rsync -av --progress /oldhd/etc/trueuserdomains /etc/
rsync -av --progress /oldhd/etc/ips /etc/
rsync -av --progress /oldhd/etc/domainips /etc/
rsync -av --progress /oldhd/etc/services /etc/
ftpd files
rsync -av --progress /oldhd/etc/sysconfig/pure-ftpd /etc/sysconfig/
rsync -av --progress /oldhd/etc/pure-ftpd.conf /etc/
rsync -av --progress /oldhd/etc/pure-ftpd /etc/
rsync -av --progress /oldhd/etc/proftpd /etc/
rsync -av --progress /oldhd/etc/proftpd.* /etc/
# /var
rsync -av --progress /oldhd/var/cpanel /var/
rsync -av --progress /oldhd/var/spool/cron /var/spool/
rsync -av --progress /oldhd/var/netenberg /var/
# /usr config - 3rdparty
rsync -av --progress /oldhd/usr/share/ssl /usr/share/
rsync -av --progress /oldhd/usr/local/cpanel/ 3rdparty/mailman /usr/local/cpanel/3rdparty/
rsync -av --progress /oldhd/usr/local/cpanel/base/ frontend /usr/local/cpanel/base/
# Apache
rsync -av --progress /oldhd/usr/local/apache/conf /usr/local/apache/
rsync -av --progress /oldhd/usr/local/frontpage /usr/local/
# Mysql config
rsync -av --progress /oldhd/root/.my.cnf /root/
rsync -av --progress /oldhd/etc/my.cnf /etc/
# Named
rsync -av --progress /oldhd/var/named /var/
rsync -av --progress /oldhd/etc/named.conf /etc/
rsync -av --progress /oldhd/etc/rndc.conf /etc/
# Mysql
rsync -av --progress /oldhd/var/lib/mysql /var/lib/
-*-*-*-*-*-*-*-*-*-*-*
#for RSYNC of home create a sh file add the following lines, execute the file as sh file.sh
for SITE in `ls /oldhd/var/cpanel/users`
do
rsync -av --progress /oldhd/home/* /home/
done
rsync -av --progress /oldhd/etc/trueuserowners /etc/
exec,passthru,system,proc_ open,popen
No comments:
Post a Comment