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!

restore from backup

Discussion in 'General Discussion' started by big, Mar 24, 2004.

  1. big

    big Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    224
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    Earth
    my root shell has been broken so box was unable to boot.

    my DC installed new disk and original disk as slave, i used rsync to sync /var , /home and /usr/local/cpanel then copied /etc/passwd /etc/master.passwd /etc/group to the original places and ran pwd_mkdb -p /etc/master.passwd

    now everything is fine but i can't list the users at the WHM, anything i'm missing in /etc i didnt copy need to copy?
    eventhough reseller access and list of them under reseller center is there!

    Thanks.
     
  2. KingAdmin

    KingAdmin Registered

    Joined:
    Mar 5, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Chicago, IL
    if you move these between drives:

    /home/
    /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/rndc.conf
    /etc/secondarymx
    /etc/my.cnf
    /usr/local/cpanel/3rdparty/interchange/interchange.cfg
    /etc/valiases
    /etc/proftpd
    /var/named
    /etc/vfilters
    /var/cpanel
    /var/spool/cron
    /usr/local/frontpage
    /var/log/bandwidth
    /usr/share/ssl
    /etc/ssl
    /var/ssl
    /usr/local/cpanel/3rdparty/mailman
    /var/lib/mysql
    /etc/trueuserdomains/
    /etc/userdomains

    and run:

    /etc/rc.d/init.d/cpanel restart
    /etc/rc.d/init.d/httpd restart
    /etc/rc.d/init.d/exim restart
    /etc/rc.d/init.d/mysql restart

    you should have all accounts up and running exactly as it was on the old drive.
     
    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