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.

Can't restore backup

Discussion in 'General Discussion' started by Sunrex, Jul 7, 2010.

  1. Sunrex

    Sunrex Member

    Joined:
    Apr 28, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I was a cPanel/WHM client a few months ago. I took a full cpanel backup before stopping.

    Now, I'm trying to extract the files. But every time I try on windows I get "The archive is invalid or corrupt".

    So I decided to try it on linux, I get the following:

    gzip: stdin: not in gzip format
    tar: child returned status 1
    tar: exiting with failure status due to previous errors

    Now, this is where it gets even more confusing:

    file cpanel*
    cpanel_backup.tar.gz: ASCII text, with very long lines, with no line terminators.

    How can I get these files extracted? I would just open a ticket over this but since I'm no longer a client I'm not sure if it would be taken or not.

    Thanks :D
     
  2. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    98
    Likes Received:
    1
    Trophy Points:
    8
    Try to use 7zip to open the backup file. I have tried and it has no problem. You can send the full backup to your web host to restore it from the WHM.:)
     
  3. Sunrex

    Sunrex Member

    Joined:
    Apr 28, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I've tried 7-zip and winrar, nothing.

    I'm not sure what you mean by restore it from the WHM, as I no longer have access to WHM. If you had read my post you would have realized what I'm trying to do is get the data from one of the sites I have in this backup.
     
    #3 Sunrex, Jul 7, 2010
    Last edited: Jul 7, 2010
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Winrar should open the file. If it doesn't and you've tried other tools and it's failed as well, I'd have to guess the backup is corrupt.

    For example if your account was low on space when you did that backup, there might have been a problem creating the archive properly on your account.
    I'm just guessing of course.
     
  5. Sunrex

    Sunrex Member

    Joined:
    Apr 28, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    My account was not low on space, and the backup is only 1GB.

    Maybe cPanel put the wrong extension on it?
     
  6. Miraenda

    Miraenda Well-Known Member

    Joined:
    Jul 28, 2004
    Messages:
    242
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Coralville, Iowa USA
    Since the file is now showing in ASCII rather than binary, that means it's a corrupted .tar.gz file.

    The gzip home page

    This FAQ explains one possible way to overcome this corruption on Linux or Windows using fixgz. It's probably the only possible hope you have of fixing it now that it's showing ASCII rather than binary. Please make a copy of the backup file before trying to use this method.
     
Loading...

Share This Page