Backups, monitoring and where personal data may be kept
Why:Sooner or later something breaks. Afterwards you’ll write an operations passport for your own project: what is copied and where under the 3-2-1 rule, how the restore is tested, what monitoring watches, who gets the alert, and where visitors’ personal data is kept under the law, with the GDPR’s rules on transfers as the main example. The lesson is not a substitute for an attorney, but it shows what to ask one.
30 minutes
Read by speech synthesis (Qwen3-TTS); the voice is not a person’s.
The 3-2-1 rule is three copies of data on two different media, one of them off site. Monitoring reports a breakage before the visitors notice it.
And if it all breaks
Everything you built in this part will break one day: a disk will die, the domain’s payment will lapse, someone will delete a folder by accident, the host will be unavailable for a day. That isn’t pessimism but statistics. So the last lesson of the part is about three questions asked in advance, while everything works.
- What comes back if the data is lost? That’s the copies.
- Will I find out about an outage before the visitors do? That is monitoring.
- Where does other people’s data lie, and may it lie there? That’s the law on personal data.
Backups
A copy isn’t a file next to the original. It exists for the case when the original is gone, and only what survived the outage was a copy.
The 3-2-1 rule. Three copies of the data (the original and two backups), on two different media or in two different places, and one of the copies off the main site. Then you survive a broken disk, a fire or a break-in in one place, and your own mistake. A copy on the same disk as the original doesn’t count: both die with the disk.
Two figures to name. RPO: how much data you accept losing. If a copy is made once a day, you lose up to a day, which is fine for a business-card site and not for a store. RTO: how long the site may be down while you bring it back. These two numbers decide how often to copy and how well prepared everything must be.
What to copy. The files of a static site are in the repository, and a repository, especially with a copy under another owner, is itself a copy of the code. But it doesn’t hold what changes without you: the database of requests, the CMS content, files visitors uploaded, the receiver’s settings. A database is copied by a dump (PostgreSQL has the pg_dump command for it) or a disk snapshot, and files by ordinary copying.
Versions, not a mirror. Syncing a folder with the cloud isn’t a copy: a mistake and ransomware are copied too. You need earlier versions: say, seven daily, four weekly and six monthly. Then you can go back to the day when everything was whole. Copies are best encrypted and kept so that an attacker who got to the server can’t delete them.
And the main thing: test the restore. A copy that has never been unpacked is guaranteed by nothing: it may be empty, broken, or missing the right settings. At least once and then regularly (say, every quarter), unpack a copy in an empty place and make sure the site and the data are there. Write the date in the passport.
Try the diagram: choose a disaster, a backup plan and a frequency, and see what comes back. The lower part of the diagram is about how quickly you learn of an outage.
The data does not come back. The copy was on the same disk and died with it. That is not a copy but a second instance on the same risk.
Say the handling of the action “Main action” has stopped, while the home page opens. The check sees that the home page is alive, and stays quiet: you won’t find out until somebody complains. Check what people come for.
Check yourself: why does a copy on the same server not protect against a break-in?
Whoever got access to the server gets to the copy on it, and can delete or encrypt both. A copy should lie where access from the server is closed or limited.
Monitoring: find out first
Monitoring is a program that keeps checking that the site is all right, and writes to you if it isn’t. Without it, you learn of an outage from a visitor, or from requests having stopped coming.
What to check.
- Availability from outside. An outside service opens the home page every minute or every five minutes and waits for a 200 answer. There are free services of this kind, and open programs you install yourself (Uptime Kuma, for example), and UptimeRobot and Better Stack are well-known hosted ones. You have to check from outside: from inside the server everything can look fine while the data center is cut off from the world.
- What people come for. The home page may open while the request form doesn’t work. A second check opens the page or function of your main action (for a form it may be a test request marked “test”) and waits for the right answer.
- The boring causes of outages: the certificate’s expiry, the payment dates of the domain and the hosting, free disk space. They break sites more often than hackers do.
- Errors and load inside the program: the error log, the number of requests, the response time. For big projects that is Prometheus with graphs, and clouds have monitoring of their own (CloudWatch at AWS and its equivalents). For a small site you can stop short of this for now.
Three rules of a good alert. The alert goes to a specific person by a channel they read (email, a chat, a text message). It is decided in advance how fast they must answer: for a business-card site “within a working day”, for a store minutes. And there are few alerts: if monitoring writes every hour “something odd”, people stop reading it, and a real alert drowns in the noise.
A useful scale. “99.9% availability” sounds like “almost always”, but it is about 43 minutes of downtime a month, and 99% is already about seven hours. When you promise or choose a provider, work out what this means for your project.
Check yourself: the home page opens, but the form doesn’t send. Will monitoring that checks only the home page notice?
No. That’s why a second check of the project’s main action is needed.
Where personal data may go
This section is general information, not legal advice. For a real project, ask an attorney, or the authority that supervises data protection where you live: your country’s data protection authority in the EU, the Information Commissioner’s Office (ICO) in the UK, and in the US the Federal Trade Commission or your state’s attorney general.
You know the basic idea from the lesson on privacy by design: privacy law follows the people the data is about. The GDPR applies to a site anywhere in the world if it offers goods or services to people in the EU, or tracks their behavior (Article 3(2)), and the lesson on personal data law covers the details of an operator’s duties. Here is the question for infrastructure: where will the data physically end up, and with whom?
The rules for sending data abroad. The GDPR doesn’t say that data must stay in the EU. It says that the protection must travel with it. Chapter V (Articles 44 to 50) lets personal data go to a country outside the EU in three main ways:
- An adequacy decision (Article 45): the European Commission has found that the country’s protection is essentially equivalent. In October 2026 the Commission’s list includes, among others, the United Kingdom, Switzerland, Japan, Canada (commercial organizations), Korea, Brazil, and the United States for organizations that joined the EU-US Data Privacy Framework (a decision of 10 July 2023). That decision survived a challenge in the EU General Court in September 2025, and an appeal is pending, so such a framework can change. Check the Commission’s page for the current list.
- Safeguards (Article 46): above all standard contractual clauses, a contract in a form the Commission has approved, that you and your provider sign. They usually come with a data processing agreement, which the major providers offer.
- Narrow exceptions (Article 49), such as a person’s explicit consent to a particular transfer. They are meant for occasional cases, not for the everyday flow of a site’s data.
The UK has the same structure under the UK GDPR, with its own tools (an international data transfer agreement and an addendum to the EU clauses). In the US there’s no single federal privacy law, and a state law such as California’s CCPA regulates what a business does with personal data rather than which country the server stands in.
The strict case, for comparison. Russia does something different and harder: under Article 18 of its law 152-FZ, the first recording, storing and retrieving of Russian citizens’ personal data must be done in databases located in Russia. Transfers abroad afterward follow separate rules. It’s a localization rule, a requirement about where, while the GDPR’s is a requirement about protection. The two show the range of what a project may meet: if your visitors are in Russia, ask a Russian attorney before choosing a platform.
What follows for your site.
- A static site stores no visitor data by itself. The question starts where a form, a mailing list, a CRM, analytics or a chat sends it: find out where those services keep the data and who their sub-processors are.
- Backups are data too. A copy of a database with names and phone numbers in a cloud bucket in another region is a transfer. Put the copies in a region you have thought about.
- Choose the region of your database and your functions on purpose (the serverless lesson shows where functions run), and write it in the passport. Many providers let you pin data to a region.
- The data has to be described in a privacy notice, and a form needs consent where the law asks for it (the lesson on the policy and consent).
How to choose a provider for data. Ask: which legal entity is the provider, where exactly is the data center (a city or a region, not just “in the cloud”), do they sign a data processing agreement and standard clauses, where do the backups lie, who are the sub-processors, and can you take your data and leave. For a small site, clear terms matter more than loud certificates. For big systems there are further requirements for securing the systems that hold personal data: that’s a specialist’s question.
Check yourself: a form on a static site sends a name and a phone number to a form service in another country. What is the risk?
The data leaves the place whose law applies to it. If the people are in the EU, the transfer needs a legal basis such as an adequacy decision or standard clauses, and the policy has to say so. Choose a service that states where it keeps the data and signs the right agreements, or collect the data another way.
Practice
Fill in the operations passport. In the first part say what is copied, how often, how long it’s kept, where it lies (at least two places, one off the server) and when you’ll test the restore. In the second say what monitoring watches (the home page and the project’s action, naming it in the words of the brief), who gets the alert and how fast it has to be answered. In the third say where the personal data from the form is kept and with which provider, and explain the choice.
The check reads the text and doesn’t prove that copies and monitoring are set up. The real check is yours: write the date of the first restore in the passport and come back to it.
What was wrong before
In 2010 a “backup” was most often an archive that the host made on the same server, and a site that lost its disk lost its copies too. “Monitoring” meant a customer’s call: “your site doesn’t open”. The rules for sending personal data abroad were then a matter of national laws and a few agreements, and in 2018 the GDPR made them one rulebook for the EU. Today all three questions are handled by tools, but they remain your responsibility: a tool doesn’t know what matters most to you.
Practice
Preparing your page…
Test
Question 1 of 5
Cards
These cards go into your review once you finish the lesson.
The 3-2-1 rule
Answer
Three copies, on two different media or places, one off the main site. Plus keeping earlier versions and a restore test: a copy that has never been opened is guaranteed by nothing.
RPO and RTO in plain words
Answer
RPO: how much data you accept losing (a copy once a day means up to a day). RTO: how long the site may be down while you bring it back. They decide how often to copy and how fast to recover.
What does monitoring watch on a small project?
Answer
The home page and the action people come for; the certificate and the domain expiry; disk space. The alert goes to a specific person, and it is decided in advance how fast they answer.
Why is synchronization not a backup?
Answer
It repeats the current state: a deleted file and one encrypted by a virus are copied too. A backup keeps earlier versions you can go back to.
What do rules on where data may go ask for?
Answer
Under the GDPR (Chapter V) a transfer out of the EU needs a legal basis: an adequacy decision, safeguards such as standard clauses, or a narrow exception. Russia goes further: the first recording of its citizens’ data must be made in Russia (Article 18 of 152-FZ). For a real case ask an attorney.
Sources
- Prometheus: Overview link only, in English
- Google SRE Book: Monitoring Distributed Systems link only, in English
- Backblaze: The 3-2-1 Backup Strategy link only, in English
- Backup (Wikipedia) CC BY-SA, in English
- GDPR, Chapter V: transfers of personal data to third countries (gdpr-info.eu) link only, in English
- European Commission: Adequacy decisions link only, in English
- UK ICO: International transfers link only, in English
Next
You now know: backups and the 3-2-1 rule, monitoring and alerts, where personal data must be stored.