cPanel Backup and Restore: Complete Guide

Full backup, files only, or database only. How to backup and restore in cPanel — with automatic scheduling.
Complete cPanel Backup and Restore Guide
Backup is not an optional feature — it is your last line of defense. A third of companies that lose data without backup do not recover within 6 months. This guide explains the cPanel backup system in full.
Understanding Backup Types in cPanel
Full Backup
Includes: website files, databases, email messages, DNS settings, Cron Jobs settings. Size is approximately equal to the hosting account size.
Primary use: Moving to a new server, or saving a complete snapshot before a major change.
Important note: A Full Backup via cPanel cannot be restored directly from cPanel — it requires server intervention (WHM). Use it for migration and archiving, not for quick restoration.
Partial Backup
Three separate types:
- Home Directory: Website files only
- MySQL Databases: Databases only (.sql files)
- Email Forwarders and Filters: Email settings
Partial backups are faster and smaller, and can be restored directly from cPanel without external intervention.
Manual Backup — Step by Step
Home Directory
In cPanel, go to Backup:
- Click "Download a Home Directory Backup"
- Wait for the file to be created (time depends on account size)
- Download the file (.tar.gz format)
- Save it in at least two different locations
Database
- Click "Download a MySQL Database Backup"
- Select the database from the list
- Download the resulting .gz file
- Repeat for each database you have
Automatic Scheduling — Setting Up Cron Job
cPanel does not schedule backup automatically from the interface directly, but you can set up a Cron Job:
# Daily database backup at 3 AM
0 3 * * * mysqldump -u dbuser -p"dbpassword" dbname | gzip > /home/username/backups/db_$(date +\%Y\%m\%d).sql.gz
# Keep only 30 copies (delete older ones)
0 4 * * * find /home/username/backups/ -name "db_*.sql.gz" -mtime +30 -delete
To access Cron Jobs: cPanel, then Advanced, then Cron Jobs.
JetBackup — The Professional Solution
JetBackup is a third-party plugin installed by some hosting providers on the server. If available to you, use it instead of the manual method.
Its advantages:
- Automatic scheduling (daily, weekly, monthly) without Cron Jobs
- Selective restoration: a single file, single folder, or specific database
- External backup to S3, Backblaze, or Google Drive
- Clear visual interface
On كلاود: all shared hosting plans include daily, weekly, and monthly backups by default.
Storing Backups Outside the Server
The biggest mistake: saving backups on the same server. If the disk fails or the server is compromised, backups are lost with the data.
External storage options:
- Separate FTP server: Simplest to implement
- Amazon S3: Reliable, cheap (5 cents/GB/month)
- Backblaze B2: Cheaper than S3 (under 1 cent/GB/month)
- Google Drive: For small and personal sites
Restoring Backups — Actual Steps
Restoring Home Directory
- cPanel, then Backup, then Restore a Home Directory Backup
- Upload the .tar.gz file
- Wait for restoration to complete
Warning: Restoration replaces existing files. To restore specific files, decompress the .tar.gz on your device first, then upload only the required files.
Restoring a Database
# From SSH
gunzip < backup_db.sql.gz | mysql -u dbuser -p"dbpassword" dbname
Or via phpMyAdmin:
- Go to Database, then Import
- Choose the .sql or .gz file
- Make sure the database already exists (create it if not)
Testing Backups — A Step Most People Skip
A backup you have never tested restoring is not a backup.
Suggested testing schedule:
- Monthly: Restore a database backup to a test environment and verify data integrity
- Quarterly: Full site restoration to a test server
- Before any major update: Manual backup and test its restoration
Final Recommendation
The "3-2-1" strategy:
- 3 backup copies
- On 2 different media
- 1 of them offsite
Data that cannot be restored = data with no value. Set aside 30 minutes per week to review backups — that time may save months of work.
Get Started
Want to try it yourself? Choose the right hosting plan or build your custom server with the specs you need.
