cPanel backup not valid format

ZoTaR

Member
Mar 20, 2017
5
1
3
Earth
cPanel Access Level
Root Administrator
I am a new convert from plesk to WHM/cPanel.

I have backed up the hosting using cpanel full backup and downloaded the file. (this server I had no access to WHM and this server is NO more exists) this is slightly older version of the cPanel I can not confirm the version.

I would like to restore the hosting on our new server.
I have full access to WHM panel and Cpanel.

As i have figured out the full backup can only be restored on the WHM side not on cPanel.

Home »Backup »Restore a Full Backup/cpmove File

i select restore with file

and select the file from my local drive.

the file uploads with no errors.

then
i get

"The uploaded file, "file name here" , is not in a valid format. Please see existing examples."

I have tried this with few backups that i have all have the same issue.


Steps to reproduce:

Home »Backup »Restore a Full Backup/cpmove File

i select restore with file

and select the file from my local drive.

the file uploads with no errors.

then
i get

"The uploaded file, "file name here" , is not in a valid format. Please see existing examples."

I have tried this with few backups that i have all have the same issue.
 

cPanelJasonT

Level 2 Technical Analyst
Staff member
Oct 21, 2014
54
6
83
cPanel Access Level
Root Administrator
Hello,

The upload option should work. If you are experiencing network issues uploading to the server, you can try to upload the backup file to the server in /home or via the user in their home directory. The locations and formats are listed in the documentation here:
Restore a Full Backup cpmove File - Documentation - cPanel Documentation

The problem you may be experiencing is that the archive that you are uploading is not a valid archive file. I'd recommend testing the archive on your desktop. The archive is in tar.gz format. If you have a GNU Linux or os x system, you can test it on the command line with this command:
tar -tzvf cpmovefile.tar.gz

Replace cpmovefile.tar.gz
If you are using a windows system, you can use a utility like Download to open the file for testing.
 

ZoTaR

Member
Mar 20, 2017
5
1
3
Earth
cPanel Access Level
Root Administrator
Whats the file name, exactly?
the file name matches
  • backup-{BACKUP-DATE_TIME}_{USER}.tar.gz
and I have renamed and tried other file names
example test.tar.gz
the error message is same.
I do NOT think the file name is relative. (I could be very wrong) since it seems no effect on the error message.

cheers
 
  • Like
Reactions: Infopro

ZoTaR

Member
Mar 20, 2017
5
1
3
Earth
cPanel Access Level
Root Administrator
Hello,

The upload option should work. If you are experiencing network issues uploading to the server, you can try to upload the backup file to the server in /home or via the user in their home directory. The locations and formats are listed in the documentation here:
Restore a Full Backup cpmove File - Documentation - cPanel Documentation

The problem you may be experiencing is that the archive that you are uploading is not a valid archive file. I'd recommend testing the archive on your desktop. The archive is in tar.gz format. If you have a GNU Linux or os x system, you can test it on the command line with this command:
tar -tzvf cpmovefile.tar.gz

Replace cpmovefile.tar.gz
If you are using a windows system, you can use a utility like Download to open the file for testing.

Hi Jason Thanks for your reply.

- The upload to the server for restore seems to be working fine. I dont get error message and process gets completed 100%.

- My client computer is windows PC, the files are on my local drive and i have tested them with winrar, i can open and extract the files. the file is in tact and no errors.

is there any option to get more detailed error messages?

cheers
 

ZoTaR

Member
Mar 20, 2017
5
1
3
Earth
cPanel Access Level
Root Administrator
Hello,

The upload option should work. If you are experiencing network issues uploading to the server, you can try to upload the backup file to the server in /home or via the user in their home directory. The locations and formats are listed in the documentation here:
Restore a Full Backup cpmove File - Documentation - cPanel Documentation

just another question here, I want to restore the file into a new user, if i create the user first then restore this will defeat the idea right?

my idea (please correct me if i am wrong) to upload and restore the backup as a new user.

I also could not find a way to upload to all the folders listed in the linked document.

The root user has no ftp access, there is no way to create an FTP user to access all those folders.
 

ZoTaR

Member
Mar 20, 2017
5
1
3
Earth
cPanel Access Level
Root Administrator
Restoring the backup will create the user account for you.


How are you uploading the backup, via the "File to restore with" option in backups I assume?
yes.


secondary note:
help file says
In order for this feature to work, the backup or cpmove file must reside in one of the following directories:

  • /home
  • /usr/home
  • /web
  • /home2
  • /home3
  • /root
  • /usr
how can we upload to all these folders.
the root does not have FTP (not complaining this is good)
I have no option to create a separate FTP account.
cheers
 

Attachments

wilcleland

Registered
Aug 9, 2019
1
0
1
Kingston
cPanel Access Level
DataCenter Provider
I've found the solution as I was having the same issue 'after I renamed the backup file'. When I renamed it again to the original name including all the date and format stuff it took it no issues.
SOLVED...