Backup Individual CPanel Account via SSH

Manager's picture

I am looking to be able to back up CPanel user accounts via ssh as there is a problem using the CPanel back up tool. Having said that, this is probably the best way to do it anyway

Log-in to the SSH as a regular user and SU - to Root.

Create a directory for the back ups and run the following command

/scripts/pkgacct username

This should create the back up in the current directory, your back up directory

To restore the cPanel account backups, log in as above and change to root user, cd to the backup directory, then run

/scripts/restorepkg username

I have not tried this yet but will need to soon