UnderHost
Knowledgebase Docs

Backup strategies for dedicated servers

Set up reliable backups for your dedicated server: WHM backup configuration, rsync to remote storage, automated database dumps, and off-server backup options.

On this page

Dedicated servers host all your client accounts-a backup failure can mean losing everything for multiple clients simultaneously. A robust, tested backup strategy is non-negotiable on a dedicated server.

WHM backup configuration

If you have cPanel/WHM, configure automated backups under WHM → Backup → Backup Configuration:

  1. Enable Backup Status
  2. Set backup type: Compressed (saves disk space)
  3. Configure retention: daily (keep 7), weekly (keep 4), monthly (keep 2) is a good starting point
  4. Set backup time to off-peak hours (e.g., 2am)
  5. Configure a remote destination (FTP, SFTP, S3, or Google Drive) so backups are stored off-server
  6. Ensure the backup destination has enough storage for all account backups
Local-only backups are not enough

Storing backups only on the dedicated server means a disk failure or server compromise can destroy both the data and the backups simultaneously. Always configure a remote backup destination.

Remote backup destinations

OptionSetupNotes
SFTP serverA second VPS or NAS with SSH accessCheap, full control
Amazon S3AWS S3 bucket with IAM credentialsHighly reliable, pay for storage used
Backblaze B2B2 bucket via S3-compatible APIMuch cheaper than S3; WHM supports B3 natively
Google DriveGoogle account with Drive APIWHM supports it; good for smaller setups

R1Soft / Imunify backup

R1Soft CDP (Continuous Data Protection) and Imunify360's backup module provide block-level incremental backups-very efficient for large servers. Ask UnderHost about R1Soft backup options if you need enterprise-grade backup for your dedicated server.

Database backup

WHM's built-in backup includes databases if configured. For additional database-only backups, schedule a cron job:

#!/bin/bash
DATE=$(date +%Y-%m-%d)
mysqldump -u root -p'password' --all-databases | gzip > /backups/db-$DATE.sql.gz
# Upload to remote
rsync /backups/db-$DATE.sql.gz user@backup-server:/remote-backups/

Recommended strategy for dedicated servers

  • WHM backups: daily (7-day retention) + weekly (4-week retention) to remote SFTP or S3
  • Database dumps: hourly mysqldump for critical databases with high transaction volume
  • Monthly archive: a full monthly backup retained for 3–6 months for compliance/recovery
  • Test restores quarterly: restore a test account from backup to verify integrity
Was this article helpful?

Need backup assistance?

Contact our NOC team for help with backup configuration on your dedicated server.

Related articles

Back to Dedicated Servers