pkgacct on a 200 GB cPanel account takes hours. The bottleneck is usually gzip compressing the home tarball, not IO or memory. Tuning helps; sometimes the right answer is to skip pkgacct entirely and use rsync or a JetBackup snapshot instead.
What’s happening
pkgacct reads the home directory, tars it, gzips it, and writes the result. The gzip step is single-threaded by default and dominates wall time on large accounts. cPanel supports flags to change the compression behavior, including using --skiphomedir to defer the home capture to a separate process (rsync) that can run in parallel.
How to verify
Before running, estimate the cost:
du -sh /home/<user>
df -h /backup
nproc
A 100 GB home on a 4-core server with single-threaded gzip will take roughly 60-90 minutes. If that’s too long, alternatives matter.
The fix
- Use parallel compression:
pkgacctsupports--compressed=pigzor similar in newer cPanel versions.pigzparallelizes gzip across CPU cores. Confirm withpkgacct --help | grep -i compress. - Skip the home tarball and rsync separately.
pkgacct <user> /backup --skiphomedir=1captures everything excepthomedir.tar. Thenrsync -a /home/<user>/ destination:/home/<user>/for the data — uncompressed but resumable and parallel-friendly. - For migration use cases, consider using JetBackup snapshot transfer instead of
pkgacct. JetBackup can write to a destination on the new server directly, saving the intermediate tarball step. - Use
--use-backups=0to preventpkgacctfrom including the account’s JetBackup data inside the cpmove archive — that’s a common source of accidental 2x size bloat. - Schedule large
pkgacctruns outside backup windows. Concurrent execution with JetBackup competes for the same disk and doubles wall time.
Stack Harbor manages large-account migrations as part of migration services.