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.

Restore Monthly cPanel backup file to another server

Discussion in 'Data Protection' started by Vito Zgonik, Jul 28, 2012.

  1. Vito Zgonik

    Vito Zgonik Member

    Joined:
    Jul 28, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London, United Kingdom, United Kingdom
    cPanel Access Level:
    Website Owner
    I have an account on shared hosting and downloaded the 'monthly' backup file from cPanel as I would like to restore it to my new dedicated server.

    Been looking everywhere for an answer but just can't find it. Any help would be much appreciated.

    Thanks
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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.
     
  3. Vito Zgonik

    Vito Zgonik Member

    Joined:
    Jul 28, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.....
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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.
     
  5. Vito Zgonik

    Vito Zgonik Member

    Joined:
    Jul 28, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London, United Kingdom, United Kingdom
    cPanel Access Level:
    Website Owner
    I created this in cPanel in the Backups section. See the attachment for reference.

    Thanks

    cpanel.PNG
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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?
     
  7. Vito Zgonik

    Vito Zgonik Member

    Joined:
    Jul 28, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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.
     
  9. Vito Zgonik

    Vito Zgonik Member

    Joined:
    Jul 28, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London, United Kingdom, United Kingdom
    cPanel Access Level:
    Website Owner
    The full backup was 3 GB before extracting. Will check with the host if they have any idea.

    Thanks
     
  10. Vito Zgonik

    Vito Zgonik Member

    Joined:
    Jul 28, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London, United Kingdom, United Kingdom
    cPanel Access Level:
    Website Owner
    Was told by the host that sometimes cPanel fails to produce a complete backup especially for large accounts such as mine. Also depends on how busy the server is.

    Luckily they have their own in-house solution as well which they just launched and they will try to restore it for me.
     
Loading...

Share This Page