Cloud House Technologies Logo
CloudHouse Technologies
HomeServicesProjectsBlogAbout UsCareersContact UsLogin
    Cloud House Technologies Logo
    CloudHouse Technologies
    HomeServicesProjectsBlogAbout UsCareersContact UsLogin

    How to Optimize cPanel/WHM Backup Size with Compression and Exclusion Rules

    Priya

    Content Writer & Researcher

    Last Updated: 2 July 2026
    🖥️

    Is Your cPanel Server Running Out of Backup Space?

    CloudHouse Technologies specialises in cPanel/WHM server optimisation, including backup configuration, compression tuning, and remote storage setup. Let us audit your backup setup and fix it before your next disk-full alert.

    🔧 Book Free DiagnosisCall NowWhatsApp
    🖥️12,400+PCs Fixed
    ⭐4.9★Google Rating
    ⚡<15 minAvg. Response
    🛡️ISO 27001Certified

    If your cPanel/WHM server is running out of disk space, there is a good chance your backups are the culprit. Unoptimised backups routinely consume two to three times more storage than necessary — and on a server with dozens of accounts, that adds up fast. This guide walks you through the exact compression settings and exclusion rules that reduce cPanel backup size by 50–80% without sacrificing restorability.

    Why cPanel Backups Grow Too Large (and Cost You Money)

    Most administrators enable cPanel backups and leave the defaults untouched. The problem is that the defaults are designed for broad compatibility, not efficiency. Three patterns are responsible for the majority of oversized backups:

    • Log file accumulation. Apache, PHP, Exim, and MySQL error logs grow silently. A single busy account can generate gigabytes of access logs in a week. Because cPanel backs up the entire home directory by default, these logs are archived every night — even though they have no restore value.
    • Reinstallable dependencies. WordPress cache directories, node_modules, and Composer vendor folders are large and completely regenerable. Backing them up wastes time and space.
    • Compression mismatches. Using maximum compression on a server with limited CPU resources makes backups slower without delivering proportional size savings. Using no compression at all doubles your storage requirement.

    Fixing these three issues typically reduces total backup size by 50–75% and cuts backup duration by 30–50%.

    💡 None of these worked? Skip the guesswork.

    Get Expert Help →

    Understanding Compression Levels in WHM Backups

    WHM exposes compression controls under Home > Backup > Backup Configuration. Scroll to the Backup Type and compression settings section.

    1Choose your backup type.

    WHM offers three modes:

    • Compressed — Creates gzip archives. Slowest to create, smallest on disk. Best for storage-constrained environments.
    • Uncompressed — Fastest to create, largest on disk. Useful only when disk is cheap and restore speed matters most.
    • Incremental — Only backs up files changed since the last run. The most storage-efficient option for daily cycles. Restore requires the full chain of incremental archives.
    2Set the pigz (parallel gzip) compression level.

    WHM uses pigz, a multi-threaded gzip implementation. The compression level runs from 0 (no compression, fastest) to 9 (maximum compression, slowest). The default is level 6.

    Compression level  | Space saved vs. level 0 | Speed (relative)
    0 (none)           | 0%                      | Fastest
    3                  | ~45%                    | Fast
    6 (default)        | ~60%                    | Moderate
    9 (maximum)        | ~65%                    | Slowest

    For most servers, level 3 or 4 delivers the best tradeoff: roughly 45–50% size reduction at two to three times the speed of level 9. Only push to level 9 if your server sits idle during the backup window.

    3Set the number of pigz processes to match your CPU cores.

    In WHM Backup Configuration, look for Number of Pigz Processes. Set this equal to your CPU core count. On a 4-core server, entering 4 enables parallel compression — one pigz process per core. This is the single most impactful CPU-level tuning you can make for backup speed.

    1Navigate to JetBackup Backup Jobs.

    In WHM, go to JetBackup > Backup Jobs and open the job you want to modify.

    2Open the Exclude Files and Directories section.

    JetBackup uses a slightly different path syntax:

    • Paths starting with / reference the filesystem root (e.g., /root/my.cnf).
    • Paths without a leading slash are relative to the account's home directory (e.g., public_html/cache).
    3JetBackup default exclusions.

    JetBackup automatically excludes common patterns: *.gz, *.log, *.jpa, *.sql, *.bkup, *.tar, Softaculous backups, and several cache directories. Review these defaults before adding duplicates.

    4Granular backup job components.

    JetBackup lets you include or exclude entire data types per backup job — databases, email, DNS zones, SSL certificates, cron jobs. For a dedicated email backup job, you can exclude home directory files entirely, keeping the job fast and focused.

    1Set a sensible retention window.

    In WHM Backup Configuration, configure how many daily, weekly, and monthly backups to retain. For most hosting accounts, 7 daily + 4 weekly + 1 monthly is sufficient. Keeping 30 daily backups of a 10 GB account means 300 GB of backup storage — for a single account.

    2Move aged backups to remote or object storage.

    WHM supports backup destinations including FTP, SFTP, S3-compatible storage, and Google Drive. Configure a remote destination under WHM > Backup > Backup Configuration > Additional Destinations. Keep recent backups local for fast restores; move older archives offsite to reduce local disk pressure.

    3Test your restores periodically.

    A backup you have never tested is a hypothesis, not a guarantee. Restore a non-critical account to a staging environment quarterly. This also confirms that exclusion rules have not accidentally removed something important.

    4Schedule backups during low-traffic hours.

    In WHM Backup Configuration, set the Backup Time to run at 2–4 AM local time. This minimises the impact of CPU-intensive compression on live site performance.

    Optimising cPanel/WHM backups is one of the highest-ROI server maintenance tasks available. A few hours of configuration work eliminates gigabytes of wasted storage and makes backup jobs run faster every single night. If you need help auditing your current backup setup or configuring remote destinations, the team at CloudHouse Technologies provides managed cPanel server support with backup optimisation included.

    Get the Free Linux Server Admin Cheatsheet (PDF)

    Essential commands for server management, networking, and troubleshooting — all on one printable page.

    Running Linux servers? Let us manage them for you.

    Our Managed Linux Server plans cover updates, security hardening, monitoring, and 24/7 incident response — so your servers stay up and your team stays focused.

    • Proactive OS patching and security updates
    • 24×7 monitoring with instant alerting
    • Backup configuration and disaster recovery
    • Dedicated Linux engineers on call
    See Pricing Plans →

    What our customers say

    “Our production server went down at 2 AM. CloudHouse had it back online in under 20 minutes. Incredible response time.”

    Arun S.

    CTO, SaaS Startup

    “They migrated our entire infrastructure from Ubuntu 18 to 22 with zero downtime. Couldn't have asked for better.”

    Deepak N.

    DevOps Lead

    Frequently Asked Questions

    Run `du --max-depth=1 /home/accountusername | sort -n | tail -20` via SSH to see which directories inside an account consume the most space. Common culprits are the logs directory, WordPress cache folders, and reinstallable dependencies like node_modules or vendor. Once identified, add these paths to the cpbackup-exclude.conf file in the account's home directory.

    Book your free 15-minute diagnosis

    A certified technician will call you back within 15 minutes during business hours.

    Share this article

    Leave a Comment

    Comments (0)

    Loading comments...

    Need Help Shrinking Your cPanel Backups?

    Oversized backups are one of the most common cPanel problems we see. Our managed support team has optimised hundreds of cPanel servers — we know exactly which exclusion rules save the most space without breaking restores. Get in touch for a free backup audit.

    Call Now — FreeWhatsApp Us

    Why CloudHouse?

    • ISO 27001:2022 certified
    • 12,400+ devices supported
    • 4.9★ on Google
    • Sub-15-minute response

    CloudHouse Technologies

    Innovative cloud solutions for modern businesses. We deliver cutting-edge technology with exceptional service.

    Contact Us

    CloudHouse Technologies Pvt.Ltd
    Special Economic Zone(SEZ),
    Infopark Thirissur,4B-15,
    Indeevaram,Nalukettu Road,
    Koratty, Kerala, India-680308
    0480-27327360
    info@cloudhousetechnologies.com

    Quick Links

    • Our Services
    • Gold Loan Software
    • About Us
    • Contact
    • Terms and Conditions
    • Privacy Policy
    ISO27001:2022
    Certified

    © 2026 CloudHouse Technologies Pvt.Ltd. All rights reserved.

    Back to top