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.

Restoring configuration files. (URGENT)

Discussion in 'General Discussion' started by lowspeed, Aug 12, 2006.

  1. lowspeed

    lowspeed Active Member

    Joined:
    Aug 13, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hi there,

    I made sure that i have the backup option working on my WHM

    Now i'm trying to do a restore for a crashed main HD.


    I don't see any option for a complete restore!

    i have a a directory called files [/backup/cpbackup/daily/files]

    Inside i have
    -rw------- 1 root root 1768 Feb 12 2004 _etc_domainalias.gz
    -rw------- 1 root root 7804 Aug 12 01:00 _etc_exim.conf.gz
    -rw------- 1 root root 69 Aug 12 01:00 _etc_exim.conf.localopts.gz
    -rw------- 1 root root 205 Aug 12 01:00 _etc_fstab.gz
    -rw------- 1 root root 1361 Aug 12 01:00 _etc_group.gz
    -rw------- 1 root root 23453 Aug 12 01:00 _etc_httpd_conf_httpd.conf.gz
    -rw------- 1 root root 69 Aug 12 01:00 _etc_ips.gz
    -rw------- 1 root root 1342 Aug 12 01:00 _etc_localdomains.gz
    -rw------- 1 root root 136 Aug 12 01:02 _etc_my.cnf.gz
    -rw------- 1 root root 2784 Aug 12 01:00 _etc_named.conf.gz
    -rw------- 1 root root 2285 Aug 12 01:00 _etc_passwd.gz
    -rw------- 1 root root 642 Aug 12 01:00 _etc_proftpd.conf.gz
    -rw------- 1 root root 1254 Aug 12 01:00 _etc_quota.conf.gz
    -rw------- 1 root root 60 Aug 12 01:02 _etc_remotedomains.gz
    -rw------- 1 root root 56 Aug 12 01:00 _etc_reservedips.gz
    -rw------- 1 root root 734 Aug 12 01:02 _etc_rndc.conf.gz
    -rw------- 1 root root 37 Aug 12 01:02 _etc_secondarymx.gz
    -rw------- 1 root root 4035 Aug 12 01:00 _etc_shadow.gz
    -rw------- 1 root root 223 Aug 12 01:00 _etc_wwwacct.conf.gz
    -rw------- 1 root root 76 Aug 12 01:00 _root_.my.cnf.gz
    -rw------- 1 root root 23460 Aug 12 01:00 _usr_local_apache_conf_httpd.conf.gz
    -rw------- 1 root root 770 Aug 12 01:02 _usr_local_cpanel_3rdparty_interchange_interchange.cfg.gz


    But isn't there an automated restore script ?
     
  2. mohit

    mohit Well-Known Member

    Joined:
    Jul 12, 2005
    Messages:
    553
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sticky On Internet
    Re:

    hi,
    it would be best if you ask your server provider to help you with it, or you can Hire someone experienced and trustable.

    Playing around with config files can be real nightmare.
    also files you've listed doesn't have any a/c's backup visible, i hope you u have them at any other folder.

    see ya,
    mohit
     
  3. lowspeed

    lowspeed Active Member

    Joined:
    Aug 13, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    So why is there a backup option with no restore option ?
     
  4. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Vancouver, Canada
    Isn't this what the Configuration File Rollback in WHM is all about?
     
  5. lowspeed

    lowspeed Active Member

    Joined:
    Aug 13, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1

    Apearently not....


    Thats only files that are changed since cpanel is up...
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  7. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    restoring files

    How do you restore /backup/cpbackup/weekly/files

    I tried with tar -xvfz filenme with error
    tar: This does not look like a tar archive
    tar: Skipping to next header
    tar: Error exit delayed from previous errors

    is this the right syntax
     
  8. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    gunzip * maybe

    I need to get the ssl(s) back
     
  9. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    ok the files are gzip so you ginzip them

    the directories you gunzip them then you can tar xvf filename
     
  10. hartzcs

    hartzcs Member

    Joined:
    Mar 12, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Because cpanel/whm is a friggin kludge, but it's still better than the alternatives. So cross your fingers and hope you can bungle your way through it and be greatful that you aren't running plesk, which breaks if you even glance at it the wrong way.
     
Loading...

Share This Page