Knowledge Base
How to Restore a Full cPanel Backup in WHM on a VPS or Dedicated Server
When you need to recover a hosting account after data loss or server changes on your VPS or Dedicated Server. This article explains how to restore a full cPanel backup using WHM.
To restore a full cPanel backup or cpmove file follow the steps:
- Log into your WHM account (yourdomainname.com:2087)
- Navigate to Backup -> Restore a Full Backup/cpmove FIle.
- Select the Options you want to use on restoration:
- Restricted Restore – for security, let this option checked
- Restricted Restore performs additional security checks on the backup file. If a component of the backup file has a security issue, the system will not restore that portion of the backup.
- Transfer Method: a. Restore with Username – if you have the backup file on the server. b. Restore with File – if you want to upload the archive from your computer
- Overwrite the existing user – if you want to overwrite the exiting account
- Assign a Dedicated IP Address – if you want to assign an IP for the account (you must have free IPs on the server)
- Click the Restore button. You will see the restoration process and any warnings/errors at the end. You can also use the Pause Queue and Abort buttons, if you want to pause or abort the process.
- The cPanel backups/cpmove files must be in one of the directories:
- /home, /home2, /home3, /root, /usr, /usr/home, /web
- And must have one of the following file names:
- 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
If you have the root access to the server via SSH, you can achieve the restoration with the following command:
/scripts/restorepkg backupname