Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    big
    big is offline
    Member
    Join Date
    Aug 2001
    Location
    Earth
    Posts
    232

    Default restore from backup

    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. #2
    Registered User
    Join Date
    Mar 2004
    Location
    Chicago, IL
    Posts
    3

    Default

    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.

Similar Threads & Tags
Similar threads

  1. restore backup: backups not found in /restore/cpbackup
    By Morgana in forum Data Protection
    Replies: 1
    Last Post: 08-12-2008, 08:49 AM
  2. Replies: 1
    Last Post: 07-31-2008, 02:24 AM
  3. "Restore Backups" AND Restore a "Full Backup/cpmove file"
    By protocol in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-28-2005, 02:53 AM
  4. WHM >> Backup >> Restore a Full Backup/cpmove file
    By jhobbs in forum Data Protection
    Replies: 0
    Last Post: 03-24-2005, 10:23 PM
  5. Restore Backup
    By metrop in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-26-2002, 03:39 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube