cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Backup → Back up an account using the pkgacct script

AI-generated

Summary

Back up a specified cPanel account using the WHM pkgacct script with customizable options controlling compression, incremental backups, included account components, and task priority.

Inputs

  • User (required) — The cPanel account username to back up.
  • Additional Fields — Optional parameters to customize the backup operation, including compression setting, incremental backup flag, low priority execution, MySQL version requirement, serialization of output, inclusion or exclusion of specific account data components (e.g., databases, API tokens, authentication links, bandwidth data, DNSSEC, DNS zones, FTP users, home directory, linked nodes, logs, reseller config, shell info, vhost templates), splitting the archive into chunks, specifying the destination directory for the cpmove archive, and whether to use the account's last successful backup as a template.

Output shape

a single response object with the WHM API output related to the backup task initiation

The output contains details from the WHM API about starting the pkgacct backup process; errors are indicated in the response if present. The operation runs the backup as a background task, and does not return the backup file itself.

Links

Discussion