Restore Monthly cPanel backup file to another server

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Have you uploaded the file to your dedicated machine? If not, upload the file to your machine and ensure to put the cpbackup file into /home or /root location.

After you have, then in WHM > Backup > Restore a Full Backup/cpmove file area, enter the username for the account to restore and click the "Restore" button.
 

Vito Zgonik

Member
Jul 28, 2012
6
0
1
London, United Kingdom, United Kingdom
cPanel Access Level
Website Owner
Thanks for the reply.

The file that I downloaded was called monthly.gz but the WH only takes the below filenames so I renamed it to USER.tar.gz where USER was an actual username of the account and I got an error message

'Sorry, we were unable to transfer the account. Information about USER's primary domain is either missing or corrupt. For more information, please examine /home/cprestore/USER/cp/USER
checked 3 files.....'

---------------------

This feature will restore full backups, cpanel backups and cpanel move files in one of the following formats:

cpmove-{USER}
cpmove-{USER}.tar
cpmove-{USER}.tar.gz
USER.tar
USER.tar.gz
backup-{BACKUP-DATE_TIME}_{USER}.tar
backup-{BACKUP-DATE_TIME}_{USER}.tar.gz


----------------------

Restore for USER

Searching /home....
Found USER.tar.gz !
Extracting tarball...................
...............
...............
...............
...............
...............
Done

Extracting Domain....Done

Sorry, we were unable to transfer the account. Information about USER's primary domain is either missing or corrupt. For more information, please examine /home/cprestore/USER/cp/USER
checked 3 files.....
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
How was this monthly backup made precisely? If it was a zipped folder you created from /backup/cpbackup/monthly/ location, that would contain more users than the default backup for one user. I'm simply trying to understand how this file was created. If it was possibly a backup from your host that isn't an actual normal cPanel backup, then that is going to pose issues.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Could you choose the option above it instead to get a full backup and let us know the results of using it instead?
 

Vito Zgonik

Member
Jul 28, 2012
6
0
1
London, United Kingdom, United Kingdom
cPanel Access Level
Website Owner
The 'option above' was copied and restored successfully to the new server. There is something strange looking at the file size. The monthly backup was 2 GB while the full backup was 3 GB.

The size should roughly be similar as I haven't made any significant changes to the files.

For a test I tried extracting the monthly.gz on my local computer and it said is corrupt. First it looked like the monthly backup was not completely downloaded but I tried several times and the files size is always exactly 2 GB.

Is it possible that there is some sort of file size limit for the monthly backup which prevented it to create a complete 3 GB backup?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Was the full backup 3GB when downloaded or 3GB after extracting it? If it was 3GB and the monthly 2GB both before extracting, then I am uncertain why one was complete and the other was not.

You might want to ask your hosting provider if they could check the cPanel error logs for why this backup is failing to be a complete one.