Created
August 9, 2020 08:01
-
-
Save ganey/54b9cc55d5c248947965842aa5c715e0 to your computer and use it in GitHub Desktop.
cPanel copy OS source files from old to new server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
rsync -vrplogDtH -e ssh /home/* [email protected]:/home | |
rsync -vrplogDtH -e ssh /usr/local/cpanel [email protected]:/usr/local | |
rsync -vrplogDtH -e ssh /var/lib/mysql [email protected]:/var/lib | |
rsync -vrplogDtH -e ssh /var/cpanel [email protected]:/var | |
rsync -vrplogDtH -e ssh /usr/share/ssl [email protected]:/usr/share | |
rsync -vrplogDtH -e ssh /var/ssl [email protected]:/var | |
rsync -vrplogDtH -e ssh /usr/local/cpanel/3rdparty/mailman [email protected]:/usr/local/cpanel/3rdparty | |
rsync -vrplogDtH -e ssh /var/log/bandwidth [email protected]:/var/log | |
rsync -vrplogDtH -e ssh /usr/local/frontpage [email protected]:/usr/local | |
rsync -vrplogDtH -e ssh /var/spool/cron [email protected]:/var/spool | |
rsync -vrplogDtH -e ssh /usr/local/apache/conf [email protected]:/usr/local/apache | |
rsync -vrplogDtH -e ssh /var/named [email protected]:/var | |
rsync -vrplogDtH -e ssh /root/.my.cnf [email protected]:/root | |
rsync -vrplogDtH -e ssh /etc/httpd/conf/httpd.conf [email protected]:/etc/httpd/conf | |
# now copy over as much user stuff as we can find | |
cd /etc | |
rsync -vrplogDtH -e ssh secondarymx domainalias valiases vfilters exim* proftpd* pure-ftpd* passwd* group* *domain* *named* wwwacct.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl hosts [email protected]:/etc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment