1. A backup is the ability to restore, not a file
Most organisations talk about server backups in the passive voice: “the backup gets done”. A file is created every night, a green icon lights up in the panel, and the subject comes back only on the day of a failure. Then it turns out that the backup sat on the same disk as the data, that nobody knows the password to decrypt it, or that the archive has been corrupted for three months.
That is why it is worth starting with a definition. A backup is a verified ability to restore the system within a defined time and to a defined point in time. These two quantities have names that appear in business continuity plans:
- RPO (recovery point objective) defines how much data the organisation can afford to lose. A backup made once a day means that, in the worst case, one day of work disappears.
- RTO (recovery time objective) defines how long the system can be down before it starts to do harm. Only someone who has restored the system at least once and measured the time knows this number.
Both values are set by management together with the IT department, not by the administrator alone. For an internal team chat or a ticket register, a daily backup and a restore within a few hours is usually enough. For systems that customer service or billing depends on, the requirements can be stricter. What matters is that they are written down, because only then can you check whether your backups meet them.
2. The 3-2-1 rule in practice
The 3-2-1 rule is the simplest way to make sure a single failure does not take both your data and its backups. It goes like this: three copies of your data, on two different media, with one copy off-site.
- 3 Three copies of your data Production data and two backups. One backup is not enough, because it may turn out to be damaged.
- 2 Two different media For example the server disk and a separate NAS or network share. Never the same disk.
- 1 One off-site A copy in another building, or on media that physically leaves the server room.
On an organisation's server it usually looks like this: production data on the server disk, automatic backups in a folder on separate media (a NAS, a network share, a second disk in another machine), and once a week or once a month a backup moved out of the building. That can be a second branch office, a safe with removable media, or a standby server in another location.
In recent years the rule is often extended to 3-2-1-1-0. The extra one means a copy that is offline or immutable, which malware cannot encrypt even if it takes over the administrator account. The zero means zero errors when verifying backups. This extension answers ransomware attacks, which increasingly begin by looking for and destroying backups, and only then encrypt the data.
The most common breach of the 3-2-1 rule is a trivial one: the backup folder sits on the same disk as the data because that was the default during installation. A disk failure then takes both. You can check this today, with a single command, before you get to the rest of this article.
3. Backup encryption and the key you must not lose
A backup contains the whole database and all attachments, which is exactly what the organisation protects on the production server. The difference is that a backup travels: it lands on a NAS, on removable media, in a second location. Each of those places is an additional point where data can leak. That is why backups that leave the server should be encrypted.
Encrypting backups has one serious consequence: without the key they cannot be restored. Nobody, including the software vendor, can recover an encrypted backup if the key was lost together with the server. Three simple rules follow:
- The key is kept away from the server: in the organisation's password manager or in a sealed envelope in a safe. A key stored only in a configuration file on the server will be lost in the same failure as the data.
- More than one person knows the key, or it is available through a procedure that does not depend on a single administrator. Holidays or someone leaving the company must not block a restore.
- Next to the key sits everything else needed for a restore: the configuration file with the passwords, the TLS certificate and key if it is your own, the licence key and the installation package of the same version of the software.
Good backup encryption provides confidentiality and integrity. Authenticated algorithms, such as AES in GCM mode, detect any change to the encrypted file. A damaged or tampered backup is rejected on decryption, so it does not quietly return to the system with errors.
4. Retention: how many backups and for how long
Retention answers the question of how far back you can go. Intuition says the longer the better, but every backup takes up space, and if it contains personal data it is subject to the same rules as production data, including the storage limitation principle in the GDPR (Article 5(1)(e)). Retention is therefore set deliberately, not “just in case”. We write about how an auditor looks at data kept in a team chat and its backups in the article team chat and the GDPR.
A good starting point is a scheme in which backups from the last few days are all kept, and older ones ever more sparsely. An example for a system of medium importance:
| Type of backup | How long to keep | What it protects against |
|---|---|---|
| Daily | last 7-14 backups | accidental deletion, an error during an update, a disk failure |
| Weekly | last 4-8 backups | a problem noticed after several days, data corruption without a system error |
| Monthly, off-site | last 3-12 backups | an attack discovered weeks later, an incident at the building |
The numbers in the table are an example, not a standard. The right values depend on your RPO, on industry regulations and on how quickly the organisation notices problems. If a ransomware attack goes undetected for three weeks and the oldest backup is two weeks old, all your backups may already contain infected data. That is why it makes sense to keep several monthly backups outside the main system.
Retention also has a technical side. Backups grow along with attachments, so you need to leave spare space on the media and monitor how full it is. A disk filled to the brim can stop the database, and then a problem with a backup turns into system downtime.
5. The restore test: the only proof that a backup works
The restore test is the moment when a backup stops being a declaration. We recommend doing it once a quarter and always after a significant change to the infrastructure: moving the server, changing the backup media, a major update.
The most reliable test is a restore on a separate machine, not on the production server. It can go like this:
- On a test virtual machine, you install the same version of the software, using the saved configuration file.
- You fetch the backup from the place where it actually lives, ideally from the off-site copy. A test from a file that happens to be at hand on the server checks less.
- You restore it with the key kept away from the server, exactly as you would on the day of a failure.
- You check what people use: logging in, the history of a chosen channel, downloading an attachment, calendar entries.
- You measure the time from the start to a working system and record the result in a short report.
The test report is a document that auditors increasingly ask for. Backups and business continuity are among the risk management measures listed in the NIS2 Directive (Article 21(2)(c)), which we cover in the article NIS2 and internal communication. An entry such as “backups made daily, last restore test 12 days ago, restore time 40 minutes” tells an auditor more than a whole description of the procedure.
6. Server backup checklist
Nine questions you need to be able to answer before your next audit, and preferably before your next failure:
- The schedule is switched on and you know when the last successful backup was made.
- Backups are on different media than the data, for example on a NAS or a network share.
- One backup regularly leaves the premises and you know who carries it and how often.
- Backups are encrypted, and the key is kept away from the server.
- More than one person knows the key, or it is available through a written procedure.
- Retention is written down and justified, including from a GDPR point of view.
- Someone gets a signal when a backup fails or the media runs out of space.
- A restore test took place in the last quarter and has a report with the restore time.
- Next to the key sits everything needed for a restore: the configuration, the certificate, the licence key, the installer.
It is best to plan the backup media right away, together with the server. The technical requirements page gives indicative values, and we help with configuring the schedule and the first restore test as part of technical support. Automatic, encrypted backups are in every plan, as the plan comparison in the pricing shows. If you are only planning a move to your own server, backups are one of the first steps described in the article on migrating a team chat without interrupting work.
The NXXTT team