UnderHost
Knowledgebase Docs

CloudPanel Backup Automation: Protect Your Data

Automate backups in CloudPanel. Schedule daily backups, configure remote storage (S3, B2), verify backups, test restoration, ensure data safety.

On this page

Manual backups are forgotten. Automated backups are reliable. CloudPanel includes powerful backup automation: schedule daily backups, send copies to Amazon S3 or Backblaze B2, compress and encrypt automatically. Never lose data again—backups happen even when you sleep.

Why Automate Backups

  • No manual work: Backups happen on schedule, no human intervention
  • Consistency: Same backup time daily, predictable and reliable
  • Remote storage: Copies stored off-server prevent total data loss
  • Encryption: Automatic encryption protects sensitive data
  • Compliance: GDPR, HIPAA, PCI DSS require automated backup procedures
  • Peace of mind: Sleep knowing data is protected every night

Backup Types

Backup TypeSpeedStorageUse Case
Full BackupSlow (large size)HighWeekly or monthly, complete restore
IncrementalFast (small size)LowDaily, only changed files
DifferentialMediumMediumDaily, all changes since last full

CloudPanel recommendation: Full backup weekly + incremental daily

Local Backup Setup

Enable local backups:

  1. CloudPanel → Backups → Settings
  2. Check "Enable Backups"
  3. Set backup directory (usually /home/cloudpanel/backups)
  4. Select backup type: "Full" or "Incremental"

Backup frequency options:

  • Daily at 2:00 AM (off-peak)
  • Weekly (Friday 3:00 AM)
  • Monthly (1st of month)

Check disk space before enabling:

# Full backup size ≈ all website + database files
# Example: 10GB website = ~10GB backup (compressed: ~2-3GB)
# Daily incrementals: ~100-500MB

df -h /home/cloudpanel
# Ensure 50%+ free space for backups

Remote Storage Integration

Why remote backup is critical:

  • VPS dies → all data lost (including backups)
  • Ransomware deletes everything → backup is only recovery
  • Remote copy = disaster recovery

CloudPanel supports:

  • Amazon S3 (most popular, ~$0.023/GB/month)
  • Backblaze B2 (cheaper, ~$0.006/GB/month)
  • Wasabi (enterprise, ~$0.0049/GB/month)
  • DigitalOcean Spaces
  • Google Cloud Storage

Amazon S3 Configuration

Step 1: Create AWS account and S3 bucket

  1. Visit aws.amazon.com
  2. Sign up or login
  3. Go to S3 service
  4. Create bucket: "mydomain-backups-2026"

Step 2: Create IAM user for backups

AWS Console → IAM → Users → Create User
Username: cloudpanel-backup
Attach policy: AmazonS3FullAccess

Step 3: Get access keys

CloudPanel → Backups → Remote Storage
Provider: Amazon S3
Access Key: [from AWS IAM]
Secret Key: [from AWS IAM]
Region: us-east-1 (or nearest)
Bucket: mydomain-backups-2026

Step 4: Test connection

  • Click "Test Connection" button
  • Should confirm successful connection

Backup Scheduling

Recommended schedule:

Schedule:
- Daily incremental backup: 2:00 AM
- Weekly full backup: Friday 3:00 AM
- Monthly full backup: 1st of month 4:00 AM

Retention:
- Keep 30 days of daily incremental
- Keep 3 months of weekly backups
- Keep 1 year of monthly backups

Configure in CloudPanel:

  • CloudPanel → Backups → Schedule
  • Set frequency and time
  • Enable remote storage sync
  • Set retention policy (delete old backups automatically)

Verify Backups

Check backup status regularly:

  • CloudPanel → Backups → Backup History
  • Verify daily backups completed
  • Check backup file sizes (should match roughly)
  • Monitor S3 bucket size growth

Verify backup integrity:

# Check backup file exists and size
ls -lah /home/cloudpanel/backups/

# Verify S3 upload
aws s3 ls s3://mydomain-backups-2026/

Test Restoration

Never trust untested backups. Test restoration quarterly:

  1. Create staging VPS (temporary)
  2. Download backup from S3
  3. Restore to staging VPS
  4. Verify all sites and databases work
  5. Delete staging VPS

Restore from CloudPanel:

CloudPanel → Backups → Backup List
Select backup → Restore
Choose target: staging-vps or production
Wait for completion (may take hours)
Test backups quarterly—untested backups are worthless

A backup that fails to restore is worse than no backup. Schedule quarterly restoration tests on staging to verify your backups actually work.

Related: Backup strategy | CloudPanel setup | Backup verification | Disaster recovery

Was this article helpful?

Need CloudPanel on a server?

Use CloudPanel on an UnderHost VPS or dedicated server for fast PHP app and WordPress hosting without a heavy panel stack.

Related articles

Back to CloudPanel