Sunrex

Member
Apr 28, 2010
15
0
51
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
 

garconcn

Well-Known Member
Oct 29, 2009
172
18
68
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.:)
 

Sunrex

Member
Apr 28, 2010
15
0
51
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.:)
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.
 
Last edited:

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
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
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.
 

Sunrex

Member
Apr 28, 2010
15
0
51
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.
My account was not low on space, and the backup is only 1GB.

Maybe cPanel put the wrong extension on it?
 

Miraenda

Well-Known Member
Jul 28, 2004
243
5
168
Coralville, Iowa USA
cPanel Access Level
Root Administrator
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.