Guides / Security
Website backups: the 3-2-1 rule and how to test a restore
By OmegaAPI · 19 November 2026 · 6 min read
Hacks, failed updates, accidental deletions and hosting problems happen to everyone eventually. With good backups they are an annoyance; without them, they can mean rebuilding the website and losing orders or customer data.
What to back up
- Website files: code, themes, plugins and uploaded images or documents.
- Database: products, orders, users, blog posts and settings.
- Configuration: environment files, server settings and DNS records (write these down too).
- Email, if it is hosted with the website.
The 3-2-1 rule
Keep at least three copies of your data, on two different types of storage, with one copy off-site — away from your hosting account. If your hosting account is hacked or suspended, backups stored only inside that account may be lost with it.
How often?
| Type of site | Suggested backup frequency |
|---|---|
| Brochure site that rarely changes | Weekly, and before every update |
| Blog or site updated often | Daily |
| Online store or app with orders | Database at least daily (more often for busy stores), files daily |
Keep enough history
Keep several versions — for example the last 7 daily, 4 weekly and a few monthly copies. Malware or data mistakes are sometimes noticed only weeks later, and the latest backup may already contain the problem.
Test the restore
- Every few months, restore a backup to a test location or subdomain.
- Check that pages load, images appear, logins work and recent orders are present.
- Write down the restore steps so someone else can follow them in an emergency.
- Time it — knowing it takes two hours helps you plan during an outage.
Protect the backups
Backups contain customer data, so treat them as sensitive. Encrypt off-site copies, restrict who can access them and never store them in a public web folder where anyone could download them.
Frequently asked
Are my host’s automatic backups enough?
They are a good first layer, but keep at least one copy elsewhere that you control, and confirm how long the host keeps backups and how restores work.
Can I store backups on Google Drive?
Yes, as the off-site copy, provided the account has strong security and two-step login, and the files are encrypted if they contain customer data.
Planning a project?
Tell us what you need and get a written quote with features, timeline and milestones — free.
Get a free quote