Thanks cPRex
I believe it's root via terminal in WHM:
[root@example ~]# su -
Last login: Fri Jul 9 21:39:47 AEST 2021 from 103.xxx.xxx.xx on pts/0
[root@example ~]# crontab -e
crontab: installing new crontab
[root@example ~]#
Extract from crontab:
09,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions > /dev/null 2>&1
7 16 * * * /usr/local/cpanel/scripts/pkgacct example
Directory listing after cronjob pkgacct should have run:
[root@example home]# ls -l
total 144
-rw-r--r-- 1 root root 530 Jun 29 18:00 0_README_BEFORE_DELETING_VIRTFS
drwxr-xr-x 2 root root 4096 Jun 29 18:00 cPanelInstall
-rw------- 1 root root 78384 Jul 10 16:04 cpmove-example100721.tar.gz
(this is a copied file after manually running pkgacct via command line, then removed cpmove-example.tar.gz just to ensure an existing same file name doesn't interfere with crontab created file )
drwx--x--x 13 example example 4096 Jul 5 19:53 example
-rw-r--r-- 1 root root 44226 Jun 29 17:54 latest
drwx--x--x 3 root root 4096 Jun 29 18:00 virtfs
The long game for this is to compare using pkgacct versus WHM Backup -> Additional Destinations.
Ideally I want to have a backup server running WHM already configured to match the production server and in the scenario of the production server crashing, importing the relevant account backup into the backup server. Hopefully using whichever is easiest and fastest to import, assuming the file is already on the backup server.
From what I've read, pkgacct appears to be quicker to import an account (once it's on the server) as it's designed for an account move, the downside is no existing scripts to rotate backups/dates and no scripts to copy from one server to another.
WHM Backup -> Additional Destinations has the backup/dates rotation sorted and scripts exist to copy to multiple option servers. I have chosen only one account to be backed up. Downside of WHM Backup -> Additional Destinations appears to be perhaps need to unpack the backup file on the backup server before importing the account?
I supposed while I'm trying to get pkgacct working via cron, I should reconfigure WHM Backup -> Additional Destinations to the backup server and see what the file looks like once it's copied there and then see how to import the account.