Results 1 to 6 of 6
  1. #1

    back up data in Cpanel

    i have back up my data in cpanel. how to restore data in cpanel?

  2. #2
    Join Date
    Mar 2003
    Location
    /root
    Posts
    23,991
    /scripts/restorepkg username .

    If you do not have root access, you need to access your provider to restore it for you.

    Specially 4 U
    Reseller Hosting: Boost Your Websites | Fully Managed KVM VPS: 3.20 - 5.00 Ghz, Pure Dedicated Power
    JoneSolutions.Com is on the net 24/7 providing stable and reliable web hosting solutions, server management and services since 2001
    Debian|Ubuntu|cPanel|DirectAdmin|Enhance|Webuzo|Acronis|Estela|BitNinja|Nginx

  3. #3
    The easiest Way is to Contact Your Web Hosting Provider. They Will Help you in this.

  4. #4
    Join Date
    Dec 2012
    Location
    In Real World!!
    Posts
    149
    If this is a full backup then it can be restored by the root user only.

    If this is just home or database backup you can do this yourself.

    If you are changing host, give the download link of full backup to your new provider to create/restore the cpanel account on new server.

  5. #5
    Quote Originally Posted by septi View Post
    i have back up my data in cpanel. how to restore data in cpanel?
    If you do not have a root access of your server then you can not restore it from cPanel. You will have to ask your hosting provider to restore it for you.

    If you have root access then you can put the backup file at one of the following locations of your server and restore from WHM:

    /home, /home2, /home3, /root, /usr, /usr/home, /web

  6. #6
    Join Date
    Jan 2013
    Location
    Virginia Beach, Va
    Posts
    52

    Post Restoring cPanel data from backup

    Quote Originally Posted by septi View Post
    i have back up my data in cpanel. how to restore data in cpanel?
    Depending on if you did a full cPanel account backup, or a partial home directory backup, and what data you're wanting to restore, the steps will be a bit different.

    If you have a full cPanel backup, chances are you have a file similar to: cpmove-userna5.tar.gz

    As others have mentioned, if you wanted to simply do a full restore of all website files, email accounts and data, MySQL databases, and cPanel settings, you'd want to restore the package as the root user on the server using the following command:

    Code:
    /scripts/restorepkg /home/cpmove-userna5.tar.gz
    Typically before doing this though, if the cPanel account still exists on the server, it would need to be terminated from the server so there are no conflicts. This is accomplished with the command:

    Code:
    /scripts/killacct userna5
    Or you'd need to force the package restore, which isn't as clean of a restore process. This can be accomplished with the command:

    Code:
    /scripts/restorepkg /home/cpmove-userna5.tar.gz --force
    If you have a full cPanel backup, and you'd simply like to restore select files such as your /public_html/index.htm file back into your account, this can be accomplished by this series of commands:

    Code:
    tar xvzf /home/cpmove-userna5.tar.gz
    cd /home/cpmove-userna5
    tar xvf homedir.tar
    cp -frp /home/cpmove-userna5/public_html/index.htm ~userna5/public_html/
    If you don't have root access on the server, you can extract the backup file locally, then just FTP up the files you need restored.

    If you instead have a partial home directory backup, you can extract it and get the select files you need. Or in cPanel under the Files section, click on Backups, and then click on Restore a Home Directory Backup, and finally Upload.

    Or just upload your backup file to the server, then contact your web host letting them know the location of the backup, and what files you'd like restored from it.

    - Jacob

Similar Threads

  1. Enotch, please let me get data back
    By inso in forum VPS Hosting
    Replies: 4
    Last Post: 02-13-2012, 07:59 PM
  2. Replies: 7
    Last Post: 10-13-2009, 01:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •