cPanel Backup Failed? 6 Proven Fixes for WHM Servers

Priya

Content Writer & Researcher

Last Updated: 8 October 2026
cPanel Backup Failed? 6 Proven Fixes for WHM Servers
πŸ–₯️

cPanel Backup Failing? Our Experts Fix It Today

CloudHouse's managed cPanel support team diagnoses and fixes backup failures on WHM servers for hosting companies worldwide. Don't wait for a disaster β€” get your backups working now.

πŸ–₯️12,400+PCs Fixed
⭐4.9β˜…Google Rating
⚑<15 minAvg. Response
πŸ›‘οΈISO 27001Certified

If your cPanel backup failed overnight and you are not sure whether your hosting accounts are actually protected, you are not alone. Backup failures are one of the most common β€” and most dangerous β€” issues on cPanel/WHM servers. A silent failure means no alert, no recovery copy, and a very bad day when a drive fails or a client account gets hacked. In this guide, we cover the 6 most common cPanel backup failure types and how to fix each one with step-by-step WHM commands.

Why cPanel Backup Failures Are Dangerous for Hosting Servers

For a web hosting company managing dozens or hundreds of cPanel accounts, backups are your last line of defence. When WHM reports a backup failure β€” or worse, silently fails without any alert β€” you face several risks:

  • No recovery point β€” if a client account is compromised or files are deleted, you have nothing to restore from
  • SLA violations β€” most managed hosting SLAs guarantee a recovery time objective that requires working backups
  • Client trust β€” a hosting company that cannot restore files loses clients permanently
  • Compliance risk β€” GDPR and similar regulations require data protection measures; missing backups expose you to liability

The most dangerous scenario is a silent backup failure β€” where WHM shows success in the UI but the backup file is corrupt or never reached the remote destination. We cover how to prevent this at the end of this guide.

πŸ’‘ None of these worked? Skip the guesswork.

Get Expert Help β†’

Fix 1: "Connection to Remote Server Stalled" Error

This is the most common cPanel remote backup error. WHM attempts to connect to your FTP, SFTP, or S3 remote backup destination and the connection drops mid-transfer.

What causes it

  • Firewall blocking FTP passive mode ports on the remote server
  • Network timeout between the cPanel server and the backup destination
  • Incorrect FTP credentials or the remote directory no longer exists
  • Backup file too large, hitting a default FTP transfer timeout

Step-by-step fix

1Verify the remote connection manually from SSH

Test the FTP connection directly from the server:

ftp -n your-backup-host.com
user your-ftp-username your-password
ls

If this fails, the credentials or a firewall rule on the destination β€” not cPanel itself β€” is the problem.

2Switch from FTP to SFTP

In WHM β†’ Backup β†’ Configure Backup β†’ Additional Destinations, change the transport to SFTP. SFTP uses a single port (22) and is far more reliable across firewalls than passive FTP.

3Increase the backup transfer timeout

Add to /var/cpanel/backups/config:

backup_timeout=14400

This allows 4 hours per account, which covers most large-account backups.

4Open passive port range on the destination if staying with FTP
echo "40000 50000" > /etc/pure-ftpd/conf/PassivePortRange
systemctl restart pure-ftpd
firewall-cmd --permanent --add-port=40000-50000/tcp && firewall-cmd --reload
1Check available disk space on the remote server
df -h /path/to/backup/directory

If the partition is full, either expand it or lower your backup retention count in WHM β†’ Backup β†’ Configure Backup β†’ Retention.

2Fix directory permissions
chown -R backupuser:backupuser /backups/cpanel/
chmod 755 /backups/cpanel/

The FTP/SFTP user must own the backup destination directory. World-writable directories (777) will also cause cPanel to reject the write for security reasons.

3Check if the backup user is over disk quota
quota -u backupuser

If a quota is set and reached, either increase it or use a dedicated backup user with no quota limit.

1Check the MySQL root credentials cPanel uses
cat /root/.my.cnf

The [mysqldump] section must have the correct root password. If the MySQL root password was changed manually without updating this file, all database backups will silently fail.

2Reset the MySQL root password via the cPanel script
/scripts/mysqlpasswd --user=root --pass=NEW_SECURE_PASSWORD

This cPanel-native script safely resets the MySQL root password and updates all relevant config files simultaneously, including /root/.my.cnf.

3Verify MySQL is running and healthy
systemctl status mysql
mysql -e "SHOW STATUS LIKE 'Uptime';"

If MySQL crashes repeatedly, check /var/lib/mysql/hostname.err for InnoDB corruption errors before attempting the backup again.

1Identify accounts causing timeouts
du -sh /home/*/public_html | sort -rh | head -20

Accounts over 5GB are the most likely culprits.

2Set backup process niceness to reduce system load

In WHM β†’ Backup β†’ Configure Backup, set Backup Process Niceness to 19. This prevents the backup process from competing with live web traffic, which is the primary cause of timeout-inducing server overloads.

3Enable incremental backups for large servers

Switch to Incremental backup type in WHM β†’ Backup β†’ Configure Backup β†’ Backup Type. After the first full backup, incremental runs only copy changed files β€” reducing backup runtime by 70–90% for large accounts.

4Exclude directories with no recovery value

Add exclusions to /etc/cpbackup-userskip.conf:

tmp
cache
.cache
node_modules
.npm
1Audit current backup disk usage
du -sh /backup/cpbackup/*/
ls -lht /backup/cpbackup/daily/ | head -20
2Set sensible retention limits in WHM

In WHM β†’ Backup β†’ Configure Backup β†’ Retention, set:

  • Daily backups to keep: 3 (7 days of large accounts fills disks fast)
  • Weekly backups to keep: 2
  • Monthly backups to keep: 1
3Add a cleanup cron as a safety net
# /etc/cron.daily/cpanel-backup-cleanup
find /backup/cpbackup/daily -name "*.tar.gz" -mtime +4 -delete
find /backup/cpbackup/weekly -name "*.tar.gz" -mtime +16 -delete
4Never store backups on the same partition as /home

A full backup disk must never take down live sites. Mount a dedicated backup volume at /backup and point WHM at it β€” this is the single most important infrastructure decision for any cPanel hosting company.

1Verify the backup cron is active
crontab -l -u cpanelbackup 2>/dev/null
ls -la /etc/cron.d/ | grep cpanel
2Clear a stuck cPanel Task Queue
/usr/local/cpanel/bin/servers_queue run --verbose

If the queue is blocked, restart the cPanel queue service:

systemctl restart cpanel-taskqueue
3Trigger a manual backup to test
whmapi1 backup_create_backup account=username type=account

Watch /usr/local/cpanel/logs/cpbackup/ in real time to see exactly what happens.

1Enable WHM backup failure email alerts

In WHM β†’ Server Contacts β†’ Configure Server Notifications β†’ Backup, enable failure alerts. This is disabled by default on most cPanel installations.

2Add a daily backup integrity check
#!/bin/bash
# /usr/local/bin/check-cpanel-backups.sh
BACKUP_DIR="/backup/cpbackup/daily"
FAILURES=0
for account_dir in "$BACKUP_DIR"/*/; do
    account=$(basename "$account_dir")
    backup_file=$(ls "$account_dir"*.tar.gz 2>/dev/null | head -1)
    if [ -z "$backup_file" ]; then
        echo "MISSING: $account" >&2
        ((FAILURES++))
    elif ! tar -tzf "$backup_file" > /dev/null 2>&1; then
        echo "CORRUPT: $account" >&2
        ((FAILURES++))
    fi
done
[ "$FAILURES" -gt 0 ] && echo "$FAILURES backup failures on $(hostname)" |   mail -s "cPanel Backup Alert" admin@yourdomain.com

Schedule this at 07:00 daily β€” 4 hours after your nightly backup window ends.

When to Call a Managed Server Support Expert

Some backup failures point to deeper infrastructure problems that require expert hands:

  • Recurring MySQL crashes during backup β€” InnoDB table corruption requires careful repair; the next backup will also fail without fixing the root cause
  • Backup I/O causing site slowdowns β€” requires tuning the backup schedule, niceness, and concurrent account limits together
  • Setting up S3 or Backblaze B2 remote backup destinations β€” API credential setup and lifecycle rules need careful configuration
  • Restoring from a partially corrupt backup β€” requires skilled partial restore techniques and file carving

Our managed cPanel support team at CloudHouse Technologies handles backup configuration, failure diagnosis, and restoration for hosting companies in the US, UK, Canada, Europe, and Asia β€” 24/7. If your backups are failing and you need them fixed today, we can help.

cPanel backup failures are almost always fixable once you identify which of the 6 failure types you are dealing with. The critical step most hosting companies skip is proactive monitoring β€” knowing about a failure within hours rather than finding out during a disaster recovery. Set up WHM backup alerts, add the integrity check cron, and use a dedicated backup partition. If you are managing multiple cPanel servers and need someone to handle backup infrastructure reliably, CloudHouse's managed server support is built exactly for that.

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

Go to WHM β†’ Backup β†’ Backup Status and check the last run log. Also verify the physical backup file exists in your backup directory with: ls -lh /backup/cpbackup/daily/. The safest method is to test a restore on a staging account β€” a backup that cannot be restored is the same as no backup.

Need this done for you?

Server Management Service

Managed Linux and Windows servers: monitoring, patching, security and 24/7 support.

Learn more

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...