The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Backup due to HDD Failing

Discussion in 'General Discussion' started by CoryHawk, Jul 19, 2011.

  1. CoryHawk

    CoryHawk Member

    Joined:
    Apr 21, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello.. Was wondering if anyone had a guide or suggestions on what I needed to do with a HDD failing.

    I have a CPANEL/WHM box with RedHat that is the Main HDD is failing. All of the OS and CPanel files are located on this drive. I have a secondary HDD mounted as /backup that I can save configs and user accounts to but I am uncertain as to WHAT to save to have as little downtime as possible.


    Is there a cpanel command that will back up the configs (Cpanel/whm/Apache/mysql/firewall/dns/etc.....) that I can move to the /backup drive so I can restore the machine to working order once the OS reload on the new HDD is completed by the datacenter?

    Any help would be REALLY appreciated.


    Thanks!
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    If I were you, I wouldn't wait for the HDD to fail - you need get yourself a new server and migrate your data ASAP. For the backups, this is what you'd usually need to back up:

    (make sure to use rsync so that user id's are retained)

    /home* (any home folders that store user accounts)
    /etc/wwwacct.conf
    /etc/userdomains
    /etc/trueuserdomains
    /etc/trueuserowners
    /etc/domainusers
    /etc/reservedips
    /etc/reservedipreasons
    /etc/passwd
    /etc/shadow
    /etc/group
    /etc/proftpd
    /etc/ips
    /etc/valiases
    /etc/vdomainaliases
    /etc/ssldomains
    /etc/ssl
    /etc/localdomains
    /etc/remotedomains
    /etc/named.conf
    /etc/exim.conf.local
    /etc/exim.conf.localopts
    /etc/quota.conf
    /etc/sudoers
    /etc/cron.d
    /var/named
    /var/cpanel
    /var/lib/mysql
    /var/spool/cron
    /var/spool/cron.suspended
    /root/.my.cnf
    /root/.accesshash
    /usr/share/ssl
    /usr/lib/php.ini
    /usr/local/apache/conf
     
Loading...

Share This Page