Use a data-class backup policy: keep encrypted backups with fixed rotation, exclude sensitive fields where possible, and treat restore copies as temporary exceptions to deletion until the next purge cycle. Weak backup rules can turn a routine restore into a GDPR breach, a retention violation, or a data leak. This guide lays out a practical policy for customer data, retention periods, deletion requests, and backup restore controls.
When do backups fall under GDPR?
Backups fall under GDPR when they contain personal data, meaning information relating to an identified or identifiable person. That includes form submissions, account records, orders, support tickets, logs with IP addresses or identifiers, and media metadata tied to a user. GDPR also applies to many organizations outside the EU when they offer goods or services to people in the EU, or monitor their behavior.
What counts as personal data in backups
Backup scope is broader than many teams expect. A customer name in a form is obvious personal data. So is an email address, order history, support message, user ID linked to an account, or log entry that can identify a person when combined with other data. Media metadata can count too when it ties an image, file, or upload to a user profile.
Microsoft’s description is useful here: customer data is data produced and stored in day-to-day business operations, while personal data is information relating to an identified or identifiable natural person. For website backups, that means operational data can still be regulated data.
Controller and processor roles for backup data
Backup roles matter because the controller decides the purposes and means of processing, while a processor acts on instructions. A website owner usually remains the controller for customer data in backups, even if a hosting company, cloud platform, or SaaS vendor stores the files. That split affects contracts, access controls, and how deletion requests move through the stack.
GDPR principles that shape backup policy
Backup policy has to reflect GDPR’s seven principles, especially storage limitation, data minimization, integrity and confidentiality, and accountability. The practical question is not whether backups are allowed. It is how long each data class stays in recoverable form, who can reach it, and how the organization can show its decisions later.
Storage limitation and data minimization
Storage limitation means keep personal data only as long as needed for the purpose. For backups, that usually means a shorter retention window for high-churn operational data and a longer one only where law or business need supports it. Data minimization means excluding fields from backups where the restore process can still work without them.
A common first-timer mistake is backing up every table and log file forever because storage is cheap. Cheap storage does not cancel retention duties.
Integrity, confidentiality, and accountability
Integrity and confidentiality call for access control, encryption, restore discipline, and vendor oversight. Accountability means having a policy, following it, and keeping records that show it was followed. If a backup set contains personal data, the organization should be able to show what is kept, why it is kept, who can restore it, and when it expires.
Backup retention matrix
This matrix maps common website data classes to a practical retention rule. The periods below are policy examples, not universal legal minimums. They are meant to show how a backup-by-data-class approach can fit retention, deletion, and restore handling without treating every dataset the same.
| Data class | Likely lawful basis | Retention period | Backup inclusion | Deletion path | Restore exception handling |
|---|---|---|---|---|---|
| Contact forms | Consent or legitimate interests, depending on purpose | 90 days after case closure | Daily backups, but exclude optional marketing fields where possible | Delete from live system, ticketing system, and next purge cycle | Restore only for incident recovery; purge the restored copy before returning it to service |
| User accounts | Contract, legitimate interests, or legal obligation | Account life plus 30 days for recovery | Daily and weekly backups | Deactivate, then remove from live records and future backups on rotation | Restore only to recover service availability, then reapply deletion before release |
| Order records | Contract and legal obligation | 7 years where tax or accounting law requires it | Daily, weekly, and monthly backups | Delete when the legal retention period ends, including archived exports | Restore permitted for accounting, dispute, or audit purposes within the legal window |
| Support tickets | Legitimate interests or contract | 2 years after closure | Daily backups | Delete from live queue and knowledge base references when no longer needed | Restore only to resolve incident data loss, then re-delete stale tickets |
| Logs and IP records | Legitimate interests or legal obligation | 30 to 90 days | Short-cycle backups; avoid long-term archive unless required | Roll off by schedule and trim identifiers where feasible | Restore for security review only; keep restoration access limited and logged |
| Media files and metadata | Consent, contract, or legitimate interests | As long as the file is published or needed | Include only if restore value justifies it | Remove from media library and purge derivative copies on deletion | Restore only the minimum set needed to recover the site version in question |
| Config files | Legitimate interests | Until superseded | Yes, with secret separation if possible | Rotate keys and delete obsolete configs on change | Restore under change control; verify secrets were not exposed |
Which lawful basis covers backup processing?
Backup processing needs its own lawful basis, tied to the purpose of retention and recovery. GDPR has six lawful bases, and consent is only one of them. For most operational backups, consent is a poor fit because a backup is usually kept for service continuity, legal retention, or security rather than a user choice that can be withdrawn on demand.
Choosing a lawful basis by data class
Match the basis to the business reason for keeping the data in backup form. Contract often fits account and order records. Legal obligation fits tax or accounting retention. Legitimate interests often fits operational logs, support records, and disaster recovery. Consent may fit certain optional marketing forms, but it should not be the default for the entire backup stack.
- Split the data classes. Separate forms, accounts, orders, logs, media, and configs so each one can carry its own retention rule and basis.
- Assign one basis per purpose. Do not reuse consent for backup retention if the real reason is recovery or legal compliance. The basis must match the purpose actually being served.
- Document the reason. Record why the class is kept, how long it is kept, and when it is removed from backup rotation. That record supports accountability and later audits.
Why consent is rarely the right backup basis
Consent can be withdrawn, but backup retention often cannot change at once without breaking recovery or audit obligations. That is why backup policy usually relies on another lawful basis. If a system uses consent for optional data collection, the deletion workflow still has to account for old restore points and fixed rotation schedules.
How should deletion requests work with old backups?
Deletion requests do not usually force immediate deletion from every backup copy. The practical rule is to delete from live systems first, block further active use, and let older backup sets age out on schedule unless a restore is needed. That approach respects erasure rights while keeping recovery possible.
Erasure requests and restore-point exceptions
When personal data exists only in historical backups, the usual control is to prevent ordinary reuse and remove it when the backup ages out or is overwritten. If a restore is needed, the restored environment should be treated as temporary and purged before it returns to production. That keeps the exception narrow.
Suppose a customer asks for erasure on Tuesday, but their order record still exists in a monthly archive set from the prior Sunday. The archive can remain untouched if it is kept only for a defined retention purpose, while the live system and future backups stop carrying the data.
Discovery, restriction, and overwrite handling
Data subject requests can include discovery, access, rectification, restriction, export, and deletion. Article 12 gives one month to respond, with possible extension for complex cases. For backups, that means the organization should know where the data exists, whether it can be isolated, and whether a request can be satisfied immediately or only through the next purge cycle.
- Find the data footprint. Check live systems, queues, exports, and backup sets before answering the request. This avoids partial deletion and inconsistent replies.
- Restrict further use. If deletion is delayed by backup architecture, stop the data from being used for anything except recovery and legal retention.
- Track the next purge. Record the backup rotation date when the data will disappear through overwrite or expiration, then verify that the purge happened.
Vendor contracts and cloud backup controls
Cloud backup can stay compliant, but only if the contract and operating model match Article 28. A processor must act under documented instructions, support security measures, and permit audits or equivalent proof. The controller still owns the policy decision. The vendor only follows it.
Article 28 terms and audit rights
Backup vendors should be covered by a data processing agreement that spells out subject matter, duration, nature, and purpose of processing; types of personal data; categories of data subjects; and the controller’s instructions. The agreement should also cover subprocessor use, deletion on termination, and audit support or audit reports that show control design.
Encryption, access control, and transfer safeguards
Encryption helps under Article 32, but it does not erase GDPR duties. Encrypted backups can still contain personal data if someone can decrypt them. Add role-based access, key separation, and restore logging. If backup storage crosses borders, the transfer mechanism must fit the vendor and location, not just the marketing language in the contract.
Do backups need to be readable by every administrator? Usually not. Restrict restore keys to a small group, and log every access to archive media and snapshot consoles.
Do backups need a DPIA or breach plan?
A DPIA is worth doing when backup workflows create high-risk processing, such as large-scale personal data storage, cross-border vendor chains, or archives holding sensitive categories. A breach plan is always needed because backup systems often hold broad data sets in one place. If a backup is exposed, the scope can be wider than a single live database.
When backup workflows need a DPIA
High-risk signs include immutable archives with long retention, broad access to production snapshots, and restore paths that copy personal data into many environments. A DPIA should ask whether the backup scope is justified, whether fields can be minimized, whether access is narrowed, and whether the retention schedule is defensible.
72-hour breach notification basics
GDPR breach notification to the supervisory authority is required where feasible within 72 hours. A personal data breach is an incident affecting confidentiality, integrity, or availability of personal data. If a backup is lost, encrypted by ransomware, or exposed to unauthorized access, the incident response team needs a fast classification and a clear path to notify, contain, and document the event.
- Classify the incident. Decide whether the event affects personal data in backup form, and whether the data was encrypted, exposed, or altered.
- Contain access immediately. Revoke credentials, isolate affected storage, and preserve logs. That limits spread and supports later investigation.
- Assess notification duty. Determine whether notice to the supervisory authority is needed within 72 hours and whether affected people must also be told.
Frequently asked questions
Does GDPR apply to website backups that contain customer data?
Yes. If a backup contains personal data, GDPR applies to that processing. That includes customer accounts, form submissions, orders, logs, support tickets, and related metadata. The backup may be old, but the data still sits in a regulated system until it is deleted or falls out of retention.
How long can I keep website backups under GDPR?
There is no single universal number. The right period depends on the data class, the purpose, legal obligations, and recovery need. A short daily rotation may fit forms and logs, while orders can stay longer if tax or accounting law requires it. Keep a documented schedule by data class.
Do I have to delete personal data from old backups when a user requests erasure?
Usually not immediately from every backup copy. The common approach is to delete from live systems, stop further active use, and let older backups age out or be overwritten on schedule. If a restore happens, the restored copy should be treated as temporary and purged before reuse.
What should I do if backups are encrypted but still contain personal data?
Treat them as personal data unless the encryption and key control make the data effectively inaccessible to unauthorized people. Encryption is a strong security measure under Article 32, but it does not cancel retention, lawful basis, or deletion duties. Key management, access logging, and rotation still matter.
Can I store website backups with a third-party cloud provider and stay compliant?
Yes, if the provider is bound by a proper processing agreement, follows documented instructions, and supports security, deletion, and audit obligations. The controller still owns the policy. Also check where the backups are stored, who can access them, and what transfer safeguards apply if data leaves the EU.
What backup controls help demonstrate GDPR accountability?
Retention logs, access controls, restore test records, vendor contracts, request handling records, and deletion schedules all help. The goal is to show what data is backed up, why it is kept, who can restore it, when it expires, and how rights requests are handled across live systems and archives.
Do logs and system-generated data in backups count as personal data?
Often yes. Logs can include IP addresses, account IDs, device identifiers, timestamps, and event trails that identify a person directly or indirectly. System-generated data may be operational, but that does not remove GDPR status. If the log can point back to a user, treat it as personal data and apply the same retention logic.