Making backups of all accounts with cyber panel ssh command

I want to take a backup of all accounts over ssh with a single command and run a restore command on the backup I took, for example, to take a backup and restore over ssh in cpanel as follows

Batch backup command over SSH (restores to home directory)

for i in $(ls /var/cpanel/users); do /scripts/pkgacct $i;done

Batch backup restore command over SSH

cd /home
for x in $(ls -A *.tar.gz | cut -d “-” -f 2 | cut -d “.” -f 1); do /scripts/restorepkg $x; done

How can I do this over ssh in cyber panel?

There is no such command but if you add all sites for backup you can then generate using the command of incbackup