Servers fail, people delete the wrong records, updates go wrong and ransomware encrypts files. None of these has to be a disaster if you have reliable backups and a tested way to restore them. Yet many businesses discover, at the worst moment, that their backups were incomplete, out of date or stored on the same server that failed.
This guide explains how to plan backups and disaster recovery (the process of getting your systems running again after a serious failure) for your website or business application.
What needs backing up
- Database: customers, orders, transactions, wallet balances, settings. Usually the most valuable and fastest-changing part.
- Uploaded files: product images, invoices, KYC documents, attachments.
- Application code: ideally kept in version control, plus the exact deployed version.
- Configuration: environment settings, scheduled tasks, web server configuration. Store secrets separately and securely.
- Email and DNS records: often forgotten until a migration.
Two numbers to agree first
RPO (recovery point objective): how much data you can afford to lose, measured in time. If you back up nightly, a failure late in the day could lose almost a full day of orders. For a recharge or payment platform that may be unacceptable; for a brochure site it is fine.
RTO (recovery time objective): how long you can afford to be offline. This decides whether you need a standby server ready to go or whether rebuilding over several hours is acceptable.
Agreeing these with your team turns "we should have backups" into a concrete plan with a matching budget.
The 3-2-1 approach
A widely used rule of thumb:
- Keep at least 3 copies of your data (the live data plus two backups).
- Store them on 2 different types of storage or systems.
- Keep 1 copy off-site, in a different location or provider account from your main server.
Many teams now add that at least one copy should be immutable or offline, so ransomware or a compromised admin account cannot delete it.
How often and how long
| Data | Typical frequency | Notes |
|---|---|---|
| Transactional database | Several times a day, or continuous | Based on your RPO |
| Brochure website database | Daily or after changes | Low change rate |
| Uploaded files | Daily, incremental | Only new or changed files |
| Code and configuration | On every release | Version control helps |
Keep a mix of recent and older copies, for example daily copies for a few weeks and monthly copies for longer. Some problems, such as silent data corruption or a hidden intrusion, are discovered weeks later.
Protect the backups themselves
- Encrypt backups, especially those containing personal or financial data.
- Restrict who can access and delete them.
- Do not store backup credentials on the main server in plain text.
- Monitor backup jobs and alert on failure. A backup job that silently stopped months ago is a common discovery.
Test restores regularly
A backup you have never restored is a hope, not a plan. At least a few times a year:
- Restore the latest backup to a separate test server.
- Check that the application starts and that recent records are present.
- Time the process and compare it with your RTO.
- Update the written recovery steps with anything you learned.
Write a simple recovery runbook
A runbook is a short document anyone on the team can follow under pressure. It should cover where backups are, who has access, how to provision a new server, how to restore the database and files, how to point the domain to the new server and who to inform. Keep a copy outside the systems it describes.
Example
Vikram runs a billing software service for small traders. A routine update corrupted part of his database. Because his team took database backups every few hours to separate storage and had practised restores, they recovered to a point shortly before the update and re-applied the few transactions recorded since from logs. Without that preparation, rebuilding data from customer receipts would have taken days.
Hosting and backups
Many hosting plans include backups, but check how often they run, how long they are kept and whether they are stored separately from your server. Your own off-site copy is still wise. Our partner DomainsRock offers hosting and VPS plans you can compare for your needs.
Get a backup review
We include backup checks and restore tests in our maintenance work and in every application audit. Contact us to review whether your current backups would really save you.
0 comments