cPanel & WHM is a hosting tool used by hosting providers to manage their sites. Sometime we want to restore backup of an account from command line interface.
In order to do that use below command.
1. To restore backup of an account.
# /scripts/restorepkg <username.tar.gz>
Note: Replace <username.tar.gz> with your backup file.
Point To Remember: It will restore all the files, databases and Emails related to that user.
To get more updates on cPanel & WHM click https://www.datanethosting.com/blog/
To know more click https://docs.cpanel.net/whm/backup/