Skip to content

cpbackup and pkgacct — when to use cPanel built-ins

When cPanel's built-in cpbackup and pkgacct still make sense in 2026, even with JetBackup or R1Soft running, and how to use them without surprising the server.

cPanel ships with two built-in backup mechanisms that pre-date JetBackup and R1Soft: cpbackup (server-wide) and pkgacct (per-account). Most managed environments turn them off because JetBackup is better. They still have niche uses: producing a single portable account archive for migration, on-demand pre-change snapshots, and disaster recovery when JetBackup itself is broken.

What’s happening

pkgacct produces a single tar.gz archive containing one cPanel account’s home directory, mail, databases, configuration, and DNS zone. The output (cpmove-<user>.tar.gz) is the canonical format every cPanel server can ingest via restorepkg. cpbackup runs pkgacct for every account on the server on a schedule. Both write to /backup/ by default.

Running them on a busy server competes with JetBackup for IO. Running both at once is a mistake.

How to verify

ls /usr/local/cpanel/scripts/pkgacct
whmapi1 backup_config_get
cat /var/cpanel/backups/config
df -h /backup

If cpbackup is enabled alongside JetBackup, the two will overlap. Disable cpbackup in WHM > Backup Configuration when JetBackup is the primary backup tool — keep pkgacct available for on-demand use.

The fix

  1. Disable cpbackup if JetBackup or R1Soft is the primary. Keep the pkgacct script for manual use: it’s at /usr/local/cpanel/scripts/pkgacct.
  2. Use pkgacct for migration handoff: /usr/local/cpanel/scripts/pkgacct <user> /backup/cpmove. The output is portable to any cPanel host running a compatible version.
  3. Use pkgacct for pre-change snapshots: before a major plugin update or PHP version change, capture a single account. It’s faster than a full JetBackup off-cycle run.
  4. After running pkgacct, verify the archive: tar -tzf /backup/cpmove/cpmove-<user>.tar.gz | head shows the structure. A truncated archive (which happens when /backup fills mid-run) shows up as a tar error here.
  5. Clean up manual archives after use. /backup/cpmove is not auto-rotated; leaving 90 days of one-off backups is a guaranteed disk-space ticket later.

For cPanel servers where backup architecture needs to be explicit and documented, Stack Harbor handles it under WHM server management.