Contents
A backup is worthless until the day you need it, and on that day it is the most valuable thing you own: an update broke the site, someone deleted pages, a hack, a corrupted database. This guide covers what to back up, what to ask of your host, and how to restore without making things worse.
What a full backup includes
| Part | What’s in it | What happens if you lose it |
|---|---|---|
| Site files | Code, themes, plugins, uploaded images | The site stops or images disappear |
| Databases | Posts, orders, members, settings | You lose content and orders |
| Mailboxes and their messages | You lose business correspondence | |
| Settings | DNS records, cron jobs, PHP version | The site misbehaves after a restore |
WordPress has a few extra details; see WordPress backup and restore.
How often to back up
- A store, or a site whose data changes daily: at least daily.
- A company site or a blog updated weekly: the automatic daily backup is enough.
- Before any big change (an update, a move, a new theme): an immediate manual backup, whatever the site.
The 3-2-1 rule
A simple rule professionals use: three copies, on two kinds of storage, one of them off site. For a small site this is enough: your host’s daily backups, plus a full copy on your computer or Google Drive every month and before any big change.
What your host should give you
Ask about these before you buy:
- Automatic daily backups without you having to remember.
- Self-service restores from the control panel, without a ticket and a wait.
- Partial restores: one file, one folder, one database or one mailbox, not only the whole account.
- A choice of day: you see the available backup days and pick one.
- A full backup you can download whenever you like.
- Backups kept off the site’s server, so the site and its backups aren’t lost together.
How to restore safely
- Pin down the problem: a broken file? Deleted content? A hack?
- Pick the right day: the last day the site was healthy. After a hack, that may be days before you noticed.
- Restore the smallest part that fixes it: one plugin folder instead of the whole site, one database instead of all of them.
- Back up the current state first, in case you need something from it.
- After a hack: restoring a clean copy isn’t enough on its own; close the hole the attacker came in through. See cleaning a hacked site.
Before a move, or before your hosting expires
If you are moving your site or your hosting is about to expire, don’t rely on the old provider’s backups: once the account is closed, its backups may go with it. Take a full backup with the files, every database and the email, download it, and check that its size makes sense and that it opens. Keep it until the site and email have worked on the new host for at least two weeks. See what happens when hosting expires.
Common mistakes
- Backups on the same server only: if the account fails, the backups go with it.
- Never testing a restore: try it once on an unimportant file so you know the steps before an emergency.
- Mixing dates: files from one day and a database from another can cause odd errors.
- Forgetting email: many people back up the site and forget that email matters most to their business.
On ArabyHost
We back up every account daily, automatically, and you restore from those backups yourself in the Araby Panel: Tools, then Backups, then Restore from a daily backup. You pick the day from the list, then what goes back: chosen files or folders, a database, or a mailbox, and you follow the progress until it says it is complete. On the same page you can create a full backup of your account and download it to your computer.
Step by step in the help center: restore from a daily backup, restore a file and download a full backup. All of it comes with every hosting plan.
FAQ
Are my host's backups enough?
For most everyday problems, such as a deleted file or an update that broke the site, yes. But they are kept by the same provider, so keep a full copy on your computer or in cloud storage now and then, especially before a move or a big change.
How far back can I restore?
It depends on the provider and the plan. Ask before you buy, and remember that a hack noticed two weeks late needs a backup older than two weeks.
Does a restore delete what I added after the backup date?
Yes, for whatever you restore. Restoring a folder brings it back as it was that day, and restoring a database rolls all of its tables back to that day. So restore the smallest part that fixes the problem, and back up the current state first.