Files
cpanel-importer/scripts/extract.sh
Claude (bootstrap) 9652a71816
All checks were successful
cpanel-importer Build and Push / Build-and-Push (push) Successful in 54s
extract: skip cpmove-*/homedir/mail tree
WHP does not import cPanel mailbox data (mail-import is a panel-side
roadmap item, not a sandbox-mode step). Extracting + ClamAV-scanning
the mail tree wastes time and disk: on real customer accounts the mail
dir often dwarfs everything else (10+ GB of historical maildir/mbox),
and clamscan has to walk every message.

Appended to the existing tar --exclude-from list (where we already
strip DANGEROUS-classified symlinks) so the existing plumbing covers
both. tar's fnmatch globs handle nested mail subdirs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-31 11:57:32 -07:00

5.3 KiB
Executable File