Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cpanel:restore-from-crash-or-hack [2011-04-14 22:01:22]
garrett.plasky Approved
cpanel:restore-from-crash-or-hack [2011-09-16 04:11:21]
garrett.plasky Approved
Line 17: Line 17:
 vfilters exim* backupmxhosts proftpd* pure-ftpd* logrotate.conf passwd* group* *domain* *named* wwwacct.conf \ vfilters exim* backupmxhosts proftpd* pure-ftpd* logrotate.conf passwd* group* *domain* *named* wwwacct.conf \
 cpbackup.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl hosts spammer* \ cpbackup.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl hosts spammer* \
-skipsmtpcheckhosts relay* localdomains remotedomains /etc</sxh> +skipsmtpcheckhosts relay* localdomains remotedomains my.cnf /etc</sxh> 
-<note tip>You may also want to copy /etc/crontab and /etc/cron.d/ if you have custom cron scripts.</note>+<note tip>You may also want to copy <c>/etc/crontab</c> and <c>/etc/cron.d/</c> if you have custom cron scripts.</note>
  
 Next up is Apache and its configuration: Next up is Apache and its configuration:
Line 54: Line 54:
 <sxh plain>rsync -avHz /olddrive/var/spool/cron /var/spool</sxh> <sxh plain>rsync -avHz /olddrive/var/spool/cron /var/spool</sxh>
  
-Root user MySQL configuration (stores root password for password-less shell connects):+Root user MySQL configuration:
  
 <sxh plain>rsync -avHz /olddrive/root/.my.cnf /root</sxh> <sxh plain>rsync -avHz /olddrive/root/.my.cnf /root</sxh>
Line 60: Line 60:
 Finally, all user data (mail, web files, etc.): Finally, all user data (mail, web files, etc.):
  
-<sxh plain>rsync -avHz /olddrive/home/* /home</sxh>+<sxh plain>rsync -avHz --exclude=virtfs/ /olddrive/home/* /home</sxh>