If you have root access on cPanel servers, you can take backups via SSH commands as well as through the control panel interface. For accounts with a very large number of files or very large account sizes, taking and restoring backups via SSH is more reliable. Errors may occur when taking or uploading large backups through the interface.
Backup Process
Log in to the server via SSH as root. Navigate to the /home directory first. Then start the backup with the following command using the cPanel account username:
cd /home
/scripts/pkgacct username
Example:
/scripts/pkgacct netinternetAfter pressing Enter, the process will begin on the server. Duration varies depending on file count and account size. After completion, you can find the backup in the home directory as cpmove-username.tar.gz.
Restore Process
Restoring a backup via SSH command is just as simple as taking one. You can restore your backup and activate the account with a single command. Make sure you are in the directory containing the backup file before running the restore command.
cd /home
/scripts/restorepkg backup-file
Example:
/scripts/restorepkg cpmove-netinternet.tar.gz
Leave a Comment
* Your comment will be published after approval.
Comments
0No comments yet. Be the first to comment!