Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Backing up entire server

Discussion in 'General Discussion' started by haze, Apr 25, 2002.

  1. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    318
    We are creating a backup script and I was wondering if there are any other folders / files I should be backing up as well, in order to get a full backup of the server. Thanks.

    /home
    /etc/vfilters
    /var/cpanel
    /var/spool/cron
    /usr/local/cpanel/3rdparty/mailman
    /var/lib/mysql
    /etc/proftpd
    /usr/local/frontpage
    /var/log/bandwidth
    /etc/valiases
    /usr/share/ssl
    /var/named
    /etc/localdomains
    /etc/rndc.conf
    /etc/my.cnf
    /etc/secondarymx
    /etc/domainalias
    /etc/named.conf
    /etc/shadow
    /etc/fstab
    /etc/passwd
    /etc/wwwacct.conf
    /etc/group /etc/proftpd.conf
    /root/.my.cnf
    /etc/httpd/conf/httpd.conf
    /etc/quota.conf
    /usr/local/apache/conf/httpd.conf
    /etc/ips
    /etc/reservedips
    /usr/local/cpanel/3rdparty/interchange/interchange.cfg
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    316
    We just moved two full Cpanel servers within the last two weeks. These were the files/directories we copied:

    FILES

    /etc/domainalias
    /etc/group
    /etc/httpd/conf/httpd.conf
    /etc/localdomains
    /etc/my.cnf
    /etc/named.conf
    /etc/passwd
    /etc/proftpd.conf
    /etc/quota.conf
    /etc/shadow
    /etc/wwwacct.conf
    /root/.my.cnf
    /etc/domainips
    /etc/ips
    /etc/userdomains
    /usr/local/cpanel/3rdparty/interchange/interchange.cfg
    /usr/local/apache/conf/httpd.conf


    DIRECTORIES

    /usr/local/cpanel/base
    /etc/proftpd
    /etc/valiases
    /etc/vfilters
    /usr/local/cpanel/3rdparty/mailman
    /usr/local/frontpage
    /usr/share/ssl
    /var/cpanel
    /var/lib/mysql
    /var/log/bandwidth
    /var/named
    /var/spool/cron
    /home

    The moves went extremely smooth without a single problem, so if you include the files/directories above on your backup script you will be able to restore the server from scratch in less than 10 minutes :)

    Sorry, missed the named files/dirs:

    /var/named
    /etc/named.conf
    /etc/rndc.conf
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    318
    Cheers!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    316
    iminteractive,

    Take a look above, I missed a few, also note that the fstab.conf file should not be restored therefore should not be backed up either ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. bdraco

    bdraco Guest

    Files
    (&/etc/named.conf&,&/etc/proftpd.conf&,&/etc/localdomains&,
    &/etc/httpd/conf/httpd.conf&,&/usr/local/apache/conf/httpd.conf&,&/etc/group&,&/etc/shadow&,&/etc/passwd&,
    &/etc/domainalias&,&/etc/fstab&,&/root/.my.cnf&,&/etc/ips&,
    &/etc/reservedips&,&/etc/quota.conf&,&/etc/wwwacct.conf&,&/etc/domainalias&,&/etc/fstab&,&/root/.my.cnf&,&/etc/ips&,
    &/etc/reservedips&,&/etc/quota.conf&,&/etc/wwwacct.conf&,
    &/etc/rndc.conf&,&/etc/secondarymx&,&/etc/my.cnf&,&/usr/local/cpanel/3rdparty/interchange/interchange.cfg&)

    Dirs
    (&/etc/valiases&,&/etc/proftpd&,&/var/named&,&/etc/vfilters&,
    &/var/cpanel&,&/var/spool/cron&,&/usr/local/frontpage&,&/var/log/bandwidth&,
    &/var/lib/mysql&,&/usr/share/ssl&,&/etc/ssl&,&/var/ssl&,&/usr/local/cpanel/3rdparty/mailman&)
     
  6. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    318
    You have some doubles going on there Nick.. I noticed you left out /home as well :P Thanks for your help guys!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. chatcircuit

    chatcircuit Member

    Joined:
    Apr 28, 2002
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    301
    IS THIS LIST STILL CURRENT

    Greetings,

    Is this list current with the latest linux distro for 8.5.3 ?

    If not any update would be appreciated.

    Thanx,

    Chatcircuit
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice