██ BestServerSupport | Outsourced Hosting Support and Server Management Service Provider
██ WHM/CPanel | HyperV Virtualization | Plesk | WebsitePanel | Windows VPS | OnAPP Cloud | Virtuzoo
██ Helpdesk Support | Cloud Administration | Dedicated Support | VPS Support
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:
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:
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:
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:
tar xvzf /home/cpmove-userna5.tar.gz
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.