cPanel web hosting control panel has some built in scripts for you to backup or restore one or more cPanel accounts.
The script to make a full cPanel account backup via SSH is:
/scripts/pkgacct
The script to restore a full cPanel account backup via SSH is:
/scripts/restorepkg
Both cPanel backup and restore SSH commands got to be run as root in your dedicated server or VPS hosting.