cPanel & WHM is a hosting tool used by hosting providers to manage their sites. Sometimes we want to take a backup of an account from the command-line interface.
In order to do that use the below command.
1. To take backup of all accounts
2. To take forceful backup of all accounts.
# /usr/local/cpanel/bin/backup –force
3. To take backup of single user
# /scripts/pkgacct <username>
Note: Replace <username> with your user.
To get more updates on cPanel & WHM click https://www.datanethosting.com/blog/
To know more click https://docs.cpanel.net/whm/backup/