Set the USER variable to the account name to backup.
USER="example"
echo "action=backup&append%5Fto%5Fpath=nothing&database%5Fdata%5Faware=yes&email%5Fdata%5Faware=yes&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&select%30=$USER&type=admin&value=multiple&when=now&where=local" >> /usr/local/directadmin/data/task.queue
To update the mailbox usage statistics for a cPanel account simply run the following replacing "<USERNAME>" with the cpanel username.
/scripts/generate_maildirsize
To resolve the problem "invalid maildirsize file"
Login to your cPanel server using SSH and run
/scripts/generate_maildirsize <username>
You will need to
Sometimes cPanel does not remove the database correctly and leaves behind files.
Take a backup and then remove the files in
/var/cpanel/datastore/<username>/
Then
This normally occurs when imaker has stopped running, you can check its current status by using
/hsphere/shared/SiteStudio/imaker.sh status
If this shows the
ERROR: PleskFatalExceptionUnable to connect to database: saved admin password is incorrect.
0: /usr/local/psa/admin/plib/common_func.php3:190psaerror(string ‘Unable to connect to database: saved admin password