Key takeaways
- A website backup must include both the files and the database — one without the other can't be restored.
- Follow the 3-2-1 rule — three copies, on two kinds of storage, one off-site.
- A backup you've never restored is a hope, not a plan — test restores regularly.
Backups are the one security control that helps with every kind of failure — a bad update, a deleted page, a compromised plugin or a mistake made at 2 a.m. The goal is simple: be able to put your site back the way it was, quickly.
What to back up
A modern website has two halves:
- Files — your theme, plugins, uploaded images and configuration files.
- The database — posts, pages, products, orders, users and settings, usually in MySQL or MariaDB.
Back up both together, at the same moment, so they match. Don’t forget email if your mailboxes are on the same hosting account.
How often
Match frequency to how much change you can afford to lose:
| Site type | Suggested frequency |
|---|---|
| Brochure site that rarely changes | Weekly, plus before every update |
| Blog or content site | Daily |
| Online store or membership site | Daily at minimum; more often during busy periods |
Always take a manual backup immediately before updating your CMS, themes or plugins.
The 3-2-1 rule
- 3 copies of your data (the live site plus two backups),
- on 2 different types of storage,
- with 1 copy kept off-site, away from the hosting account.
Your host’s backups cover the first layers. An independent off-site copy — downloaded or sent to separate cloud storage — covers the rest.
Retention
Keep a mix of recent and older backups, for example the last 7 daily, 4 weekly and a few monthly copies. Malware and data mistakes are often discovered late, and you need a copy from before the problem started.
Test your restores
Every few months, restore a backup to a staging copy or a spare subdomain and check that the site works. A restore test reveals missing databases, incomplete archives and forgotten passwords while it’s still harmless.
In cPanel
cPanel’s backup tools let you download a full account backup, or separate home-directory, database and email-forwarder backups. Many hosts also provide a restore interface for their automated daily backups.
When things go wrong
If a site is hacked, restore from a backup taken before the compromise, then update everything and change all passwords — otherwise the same weakness will be exploited again.
Frequently asked questions
Aren't my host's daily backups enough?
They are a strong first layer. Keeping your own independent copy as well protects you against account-level problems, mistakes that go unnoticed past the retention window, and gives you a copy if you change provider.
How long should I keep backups?
Keep several recent daily copies plus some weekly and monthly ones. Problems such as a hacked plugin can go unnoticed for weeks, so a single recent copy may already contain the issue.