On this page
A sound website backup strategy for a small business is simple: back up both files and database automatically, as often as your content changes, keep at least one copy somewhere your web server cannot touch, and prove every few months that you can actually restore it. Most owners have the first part. Very few have done the last, and that is the part that decides whether a bad day costs you an hour or a month.
What a backup must include
A website is not one thing. A complete backup has three parts, and missing any one of them means a restore will fail or come back broken.
| Part | What it holds | Commonly forgotten because… |
|---|---|---|
| Files | Code, theme, plugins, uploaded images and documents | Owners assume "the site" is just pages |
| Database | Pages, products, orders, customers, bookings, settings | File-only backup tools skip it |
| Configuration | Environment files, API keys, cron jobs, server settings, DNS records | It lives outside the website folder |
For a site with M-Pesa payments, write down the Daraja callback URLs and app settings too. If you ever restore to a new server, those details have to be updated or payments will go through without your orders being marked as paid.
Email is a separate question. If your business email runs on the same hosting account, it is usually not included in a website backup. Check with your host.
How often to back up
Ask yourself: if the site died right now and I restored last night's copy, what would I lose? That answer sets the frequency.
- Brochure site, updated a few times a month: weekly full backup, plus one before every change.
- Blog or news site: daily database, weekly files.
- Online store, booking system or member portal: daily full backup at minimum, with more frequent database backups if orders come in all day.
- Before any update or redesign: always, manually, regardless of the schedule.
A quick worked example
Say a cosmetics shop in Kisumu takes around 30 online orders a day, averaging KES 2,500 each. With weekly backups, a server failure on Saturday could wipe out six days of order records: roughly 180 orders and KES 450,000 of sales that would need to be rebuilt from M-Pesa statements, WhatsApp chats and memory, while customers ring to ask where their parcels are. With daily database backups, the gap shrinks to one day's orders. The extra storage costs very little compared with that clean-up.
Keep more than just the latest copy. A hack can sit unnoticed for weeks, so if your only backup is from yesterday, it may already contain the infection. A practical rotation is daily copies for two weeks, weekly copies for two months and monthly copies for a year.
Offsite copies: the 3-2-1 rule
The 3-2-1 rule is the standard approach: three copies, on two kinds of storage, one of them offsite. For a small website it looks like this:
- Copy one: the live site itself.
- Copy two: your host's automatic backups, usually in the control panel.
- Copy three: an automatic copy to a separate cloud storage account, under a different login, that the web server can write to but not delete from.
That last detail matters. Some attacks delete every backup the compromised server can reach. If your backup plugin uses credentials that can also delete old copies, an attacker who takes over the site can wipe your history. Ask your developer to set up write-only access or versioned storage where old copies are retained.
If your hosting renews through HostingKE or another provider, read what their plan actually includes: how often backups run, how many days are kept and whether restores cost extra. Do not assume.
Testing a restore
This is the step that most backup guides mention in one line and most businesses never do. A backup you have not restored is a hope, not a plan. Common surprises during a first test restore include zipped archives that turn out to be corrupt, databases that were silently excluded, and backups that stopped running months ago when a storage quota filled up.
A quarterly restore drill
- Pick a backup at random, not the newest one.
- Restore it to a staging location or a temporary subdomain, never over the live site.
- Log in to the admin area and check that recent content, products and orders are present.
- Test a form and, on a store, a checkout using a sandbox or a small real payment you then refund.
- Time the whole exercise. That number is your realistic recovery time.
- Write down any step that needed a password or detail you had to hunt for, and add it to your records.
- Delete the test copy, or protect it from public access and search engines.
The first drill always takes longer than expected. That is the point: you want to discover the gaps on a quiet Tuesday, not the morning after a hack. If a restore is needed for real, our guide on what to do in the first 24 hours after a hack explains why you should not restore before closing the hole the attacker used.
Who holds the backups
A frequent story in Kenya: the developer who built the site set up backups to their own storage account, then stopped answering calls. The backups exist, but you cannot reach them.
- The offsite storage account should be in the business's name, with an email address the business controls.
- Your developer or support provider can have access to manage it, but should not be the only one with access.
- Record the login in your password manager or site register, alongside domain and hosting details.
- If you change providers, check that the new one can access existing backups before the old one is removed.
Backups often contain customer data, including names, phone numbers and order histories, so treat the storage account as you would your accounts system. Use a strong password and two-factor authentication, and limit who can download from it.
Backup checklist
- Files, database and configuration are all included.
- Backups run automatically, at a frequency that matches how often the site changes.
- Several generations are kept, not just the latest copy.
- At least one copy is offsite, in an account the web server cannot delete from.
- The offsite account is in the business's name, with two-factor authentication.
- A manual backup is taken before every update or significant change.
- A restore has been tested within the last three months, and the time it took is recorded.
- Someone receives an alert if a backup fails.
These items also appear in the monthly and quarterly sections of our website maintenance runbook, which is the easiest way to keep them from slipping.
Getting it set up
If you are not sure what your current backups include, or have never tested one, that is the place to start. Our website support plans include automatic offsite backups in an account you own and a regular test restore, and if you would rather just have someone check your existing setup once, get in touch.