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.

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:
    16
    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:
    1
    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.
     
Loading...

Share This Page