Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Restore domain from full cPanel backup (tar.gz) through WHM/ Command Line  (Read 3722 times)

0 Members and 1 Guest are viewing this topic.

Eby Sebastian

  • Newbie
  • *
  • Posts: 14
  • Karma: +1/-0

To Restore Backup through cPanel/ WHM

1. Login to the WHM using root password through web browser.
2. To restore a full backup file, simply move the file (usually named as username.tar.gz or cpmove-username.tar.gz) to /home directory (or /usr/home, /web, /home2, /home3, /root, /usr directory if applicable).
3. Click on 'Restore a full Backup/cpmove file' option under 'Main >> Backup'.
4. Now, Enter the username for the account you wish to restore.
5. Click on 'Restore' in order to restore user.

Restore cPanel/ WHM user or single domain Backup through command line

Alternatively, if you are the server administrator you can login to the server via SSH as root, and run the following command in the shell:

Code: [Select]
#/scripts/restorepkg username
Where username is the name of the user that you want to restore.

You don’t have to create an account prior to restore as the account will be automatically created if it does not exist. All the user files and folders including databases will be restored to the correct locations. There is not need to untar or extract the backup file.
Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!