If you have SSH access to your cPanel server, you can take backups via SSH commands just as you can through cPanel. There is no difference between the two methods. However, in rare cases, backups taken through cPanel may encounter issues if there are too many files or the account size is very large. In such cases, taking a backup via command is the most reliable method.
Backup Process
After logging into your cPanel server as root, navigate to the /home directory. Then start the backup using the cPanel account username with the following command:
cd /home
/scripts/pkgacct username
e.g.
/scripts/pkgacct netinternetAfter pressing Enter, the process will begin. The duration depends on the file count and account size. After completion, you can find the backup as cpmove-username.tar.gz in the home directory.
Restore Process
Restoring a backup via SSH is just as simple. 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
e.g.
/scripts/restorepkg cpmove-netinternet.tar.gzYou can restore backups taken through cPanel or via command with this command, as long as the backup file has a tar.gz extension.
Leave a Comment
* Your comment will be published after approval.
Comments
0No comments yet. Be the first to comment!