
cPanel account backup and restore using SSH
you can easily take backup of any cPanel website or email hosting account using SSH. You will have to use pkgacct cPanel script located at /scripts folder on your server.
You will have to login to your server as root.
# cd /scripts
# ./pkgacct username
after these commands a file is created named “cpmove-username.tar.gz” on /home directory. This file you would be using to restore account on server latter or on any other server. Thus you have backup copy of your account.
Restoring cPanel account :
If you want to restore your account on same server or another server, you will have to upload “cpmove-username.tar.gz” to the server where you want to restore it. To upload above file you can use ftp, rsync or scp.
Using following command you can restore your account on the new server.
Run the next command:
# /scripts/restorepkg username
thus you can restore homedir, dbs, mail etc… for the cpanel website or email hosting account you have taken backup.
Posted under Linux cPanel Hosting, Shared cpanel Hosting, cpanel control panel, webhosting cpanel
This post was written by admin on November 5, 2009




















