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.

cPanel backup not valid format

Discussion in 'Data Protection' started by ZoTaR, Mar 20, 2017.

  1. ZoTaR

    ZoTaR Member

    Joined:
    Mar 20, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,117
    Likes Received:
    258
    Trophy Points:
    83
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Whats the file name, exactly?
     
  3. cPanelJasonT

    cPanelJasonT Level 2 Technical Analyst
    Staff Member

    Joined:
    Oct 21, 2014
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    3
    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.
     
  4. ZoTaR

    ZoTaR Member

    Joined:
    Mar 20, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Earth
    cPanel Access Level:
    Root Administrator
    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
     
    Infopro likes this.
  5. ZoTaR

    ZoTaR Member

    Joined:
    Mar 20, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Earth
    cPanel Access Level:
    Root Administrator

    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
     
  6. ZoTaR

    ZoTaR Member

    Joined:
    Mar 20, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Earth
    cPanel Access Level:
    Root Administrator

    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.
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,117
    Likes Received:
    258
    Trophy Points:
    83
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    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?
     
  8. ZoTaR

    ZoTaR Member

    Joined:
    Mar 20, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Earth
    cPanel Access Level:
    Root Administrator
    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
     

    Attached Files:

  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,117
    Likes Received:
    258
    Trophy Points:
    83
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You only need to upload the backup to one of them.

    You might find installing this addon (via SSH) helpful:
    configserver.com/cp/cse.html

    Have you had a chance to verify the backup as Jason suggested?
     
Loading...

Share This Page