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 tar.gz file created in cpanel full backup

Discussion in 'Data Protection' started by audrey, Dec 11, 2014.

  1. audrey

    audrey Well-Known Member

    Joined:
    Oct 18, 2006
    Messages:
    72
    Likes Received:
    1
    Trophy Points:
    8
    Hi

    I am trying to copy a cpanel site from another server that I do not have SSH access to
    to one of my cpanel servers that I do have root SSH access to.

    On the server that the site is currently on-
    in cpanel in the backups area where it says:
    "A full backup includes all of the files in your home directory, your MySQL Databases, and your email forwarders and filters. You can backup your account to preserve your data or use a backup file to move your account to another cPanel server."
    I backed up the site to an ftp backup destination.
    This worked great.

    It created a file in the format
    12.10.2014_13-49-27_USERNAME.tar.gz

    My questions are

    1 - If I copy this file to the backup drive on my server
    should I try and restore it using the old style backups or the new style backups?

    It's not a problem in the WHM for me to set the backups to incremental or full backups-
    whatever you recommend for restoring this type of file via the WHM.


    2 -what's the best ssh command to copy this tar.gz file from the web site in the public_html folder
    that I copied it to on the server to my backup drive on the server.
    (I can put it in the backup or cpbackup folders- whatever you recommend for restoring the format that it is in)

    3 - or am I going about this the wrong way and is it possible to just restore the file through the cpanel restore option?

    4- it is a huge file and I was hoping that there is a faster approach than using the WHM to restore
    -perhaps just an ssh command to restore or set up from scratch as a new site?

    Thanks for your help
    Audrey
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    1. You should restore that archive via:

    "WHM Home » Backup » Restore a Full Backup/cpmove File"

    2. You should move it to the /home directory before restoring it. EX:

    Code:
    mv /path/to/12.10.2014_13-49-27_USERNAME.tar.gz /home/
    3. It's not possible to restore the archive through the cPanel UI.

    4. You could also restore it via:

    Code:
    /scripts/restorepkg /home/12.10.2014_13-49-27_USERNAME.tar.gz
    Thank you.
     
  3. audrey

    audrey Well-Known Member

    Joined:
    Oct 18, 2006
    Messages:
    72
    Likes Received:
    1
    Trophy Points:
    8
    Thanks Michael

    Happy Holidays!
     
Loading...

Share This Page