
A medical records backup survives an attack only if at least one copy is out of reach of the organisation’s administrative accounts, meaning offline or immutable, and if restoring from it has been proven in practice. The provider also needs to know exactly what is backed up, how often, how long a restore takes and who has access to the copies.
This article explains how to design, test and retain copies so that a medical records backup meets legal requirements and can be restored after the systems have been encrypted. The technical guidance works in any EU country. The legal examples come from Poland, where Remote Admin is based, and are marked as Polish rules. Legal status as of November 2026. This article is for information only and is not legal advice. How wards keep working during the outage is covered separately in our article on hospital ransomware and business continuity. If you need someone to run backups for you, see our data backup service.
Is a medical records backup mandatory?
In practice, yes. In Poland the rules on medical records never use the word “backup”, but the obligation follows from the requirement to protect records against destruction, damage or loss and to keep them constantly available. At EU level, health data is a special category of personal data under Article 9 of the GDPR, and its processing has to meet the security requirements of Article 32.
The Polish medical records regulation (in Polish), that is the Regulation of the Minister of Health of 6 April 2020 (consolidated text Journal of Laws 2026, item 1391), treats records as secured when they are available only to authorised persons and when the methods and means of protection in use are commonly recognised as effective (§ 1(4)). It is hard to name another measure that protects against data loss the way a regular, verified backup does.
| Provision (Poland) | What it requires | What it means for backups |
|---|---|---|
| § 1(5)(2) of the medical records regulation | Documented procedures for securing records and systems, including access and storage procedures | A written backup procedure: scope, schedule, storage locations, permissions |
| § 1(5)(5) | Ongoing control of safeguards and periodic assessment of their effectiveness | Monitoring of backup jobs and restore tests with a written report |
| § 1(5)(6) | Plans for long-term storage, including moving records to new media and new formats | A retention and data migration plan |
| § 1(6)(1) and (2) | Integrity of content and metadata, constant access for authorised persons | Integrity verification of every copy, a measured restore time |
| § 1(6)(8) | Export of all data in a way that allows it to be restored in another system | Export as an additional recovery path that does not depend on the vendor |
| § 1(7) | Conditions that protect records against destruction, damage, loss and unauthorised access, and allow them to be used without undue delay | A copy in another location, protected against access and quick to restore |
| Article 24(1) of the Patient Rights Act | Keeping, storing and sharing records, and protecting the data in them | Responsibility stays with the provider, also when a vendor makes the copies |
| Article 8(1)(2)(f) of the KSC Act | Business continuity and recovery plans that are implemented, documented and tested | Applies to essential and important entities; the backup and the restore test are part of the plan |
The regulation applies to every healthcare provider in Poland, from a single-doctor practice to a multi-specialty hospital. Poland’s National Cybersecurity System Act (the KSC Act) transposes NIS2. It was amended by the Act of 23 January 2026 (Journal of Laws 2026, item 252; in Polish), in force since 3 April 2026. The KSC Act covers only essential and important entities, and status depends mainly on size. You can get a first indication from our free Regulatory Compass survey.
The KSC Act names backups explicitly in Annex 4, which is intended for important entities that are public entities within the meaning of that Act. It requires backups that are separated logically and physically from the data processed in information systems, and testing of their completeness and of the ability to restore from them (points 10 and 11). Hospitals covered through the health sector apply Article 8, and whether the annex applies to a particular public facility has to be confirmed case by case.
Backup, replication, snapshot and electronic medical records archiving: what is the difference?
They are four different mechanisms, and only a backup gives you a dependable way back to the state before an attack. Confusing them ends with a provider that has “copies” in three places and cannot use any of them. The table also includes data export in standard formats, because it is sometimes treated as a backup.
| Mechanism | What it is for | Does it protect against ransomware? |
|---|---|---|
| Replication, high-availability cluster | Keeping systems running when hardware or a server room fails | No. Encrypted or deleted data replicates immediately |
| Snapshot | A quick return to the state of a few hours or days ago | Only if the attacker has not gained access to the storage array or the virtualisation platform |
| Backup | An independent copy of the data with version history | Yes, provided it is separated from the production environment |
| Archive | Keeping closed records for the whole required period and keeping them readable | No. The archive itself needs a backup |
| Export in standard formats (HL7, DICOM) | Moving data to another system | Partly, as an additional way to recover the content |
A high-availability cluster and a backup therefore solve different problems. The difference between a snapshot and a backup is explained in our article on snapshot versus backup.
What must a medical records backup cover?
It must cover everything without which you can neither read the records nor start the systems that hold them: databases, file repositories, identity services and configurations. A hospital information system (HIS) database restored onto an empty server, without the application configuration and the interfaces, will not print a single patient history.
| Asset | What to back up | What to watch for |
|---|---|---|
| HIS | Database with transaction logs, application configuration, dictionaries, print templates | The copy must be consistent, made with the database engine’s own mechanism or an application-aware agent |
| Electronic records repository (EDM in Poland) | Signed documents, metadata, index | A document without the index cannot be found; a modified file will fail signature verification |
| RIS/PACS (radiology system and image archive) | RIS database, PACS database, DICOM images | Large volumes need their own schedule; database and images must match each other |
| Laboratory system (LIS) | Database, configuration of analysers and interfaces | Without the test mappings, results will not reach the right orders |
| Integrations | Configuration of the exchange channels between systems | Often skipped, then rebuilt from memory |
| Identity services | System state of the domain controllers, DNS | Restoring the directory needs a separate, rehearsed procedure |
| Network and virtualisation | Configurations of firewalls, switches and hosts | Export after every change, stored outside the production network |
| Certificates and keys | Certificates for communication with external systems, keys that encrypt the backups | Stored separately from the data, with access control |
| File shares | Scans of paper records, consent forms, attachments | They often sit outside the HIS and outside the backup schedule |
| The backup system itself | Catalogue and job configuration | Without the catalogue, a restore takes many times longer |
You define the scope by walking through the departments, not by reading a list of servers. Records are also created in places the IT team rarely visits: on the workstation next to an ultrasound machine, on the disk of an endoscopy room that saves recordings locally, in a reporting program installed on one computer. Each of these places has to be added to the schedule, or the data has to be moved to a server.
How to design the copies: the 3-2-1 rule with an offline or immutable copy
The starting point is the 3-2-1 rule: three copies of the data, on two different types of media or systems, one of them outside the primary location. A healthcare provider needs to extend it with a copy that is offline or immutable, one that cannot be deleted or overwritten before a set period has passed, not even from an administrator account. We cover the basics in our guide to the 3-2-1 backup rule.
The reason is how attacks unfold. An attacker who has taken over a domain administrator account looks for the backup server before starting the encryption, removes the jobs and wipes the repositories. A copy that can be reached from the production network with the same credentials is lost together with the data.
An example layout for a hospital
- Copy 1: a local backup repository in the server room, meant for fast restores of individual systems.
- Copy 2: a copy in a second location, for example in an external data centre under a server colocation arrangement, which protects against fire, flooding and power failure.
- Copy 3: an immutable copy, for example in object storage with a write lock such as S3 storage, or on media that are physically disconnected from the network.
Protecting the backup system itself
- The backup server runs outside the production domain and has its own accounts with multi-factor authentication.
- The repositories sit in a dedicated network zone. The backup server reaches into the production systems to fetch data; the production systems have no access to the repository.
- The immutability period is longer than the time an attacker can stay in the network unnoticed. Assume that time with a margin: weeks, not days.
- Deleting a copy or shortening retention takes the action of two people.
- A deleted job, a failed backup and an unusual jump in the amount of changed data each raise an alert that someone picks up at night as well.
Every variant has a cost. Immutability takes more space, because the data cannot be released early. Removable media demand discipline and a person who swaps them. A copy in a remote location is limited by the bandwidth of the link: sending a 40 TB image archive over a 1 Gb/s link takes just under four days at full use of the link, and longer in real conditions. That is why large PACS archives are usually restored in stages, starting with the studies from the last few weeks.
How often should you back up? RPO and RTO from the backup side
You back up often enough that the data lost between two copies never exceeds the RPO set for that system. For HIS and LIS databases that usually means transaction log backups many times a day, not one nightly copy. RPO (recovery point objective) is the longest period of data you can afford to lose. RTO (recovery time objective) is the longest time allowed for bringing the system back. Both values come from the needs of the clinical processes. How to agree them with the wards is described in our article on business continuity under ransomware, linked above.
The values in the table are illustrative examples, not standards set by law. Every provider sets its own, based on its own analysis.
| System | Type of copy | Example frequency | Example RPO |
|---|---|---|---|
| HIS database | Full, differential, transaction logs | Full weekly, differential nightly, logs every 15–30 minutes | up to 30 minutes |
| LIS database | Full and transaction logs | Full nightly, logs every 30 minutes | up to 30 minutes |
| Electronic records repository | Incremental at file or object level | Hourly | up to 1 hour |
| PACS images | Incremental, continuously topped up | Every few hours | up to 24 hours, if the imaging devices keep studies locally |
| Application virtual machines | Image of the whole machine | Nightly | up to 24 hours |
| Network configurations | Configuration export | After every change and once a week | the last change |
A single nightly copy means that after a failure at 15:00 a whole day of orders, results and discharge summaries has to be rebuilt from paper and from memory.
RTO on the backup side cannot be declared. It has to be measured. It is the sum of preparing the server, transferring the data from the repository, replaying the logs, checking consistency and starting the application. If the measurement shows 20 hours and the ward needs the system back after eight, the provider has a specific gap to close: a faster local repository, starting the virtual machine directly from the backup, or a standby server kept ready.
How do you test a restore and document it?
You test a restore by actually restoring the data into an isolated environment and having a user confirm that a specific patient’s records are complete and readable, and you document it in a report with the date, scope, duration and result. The message “job completed successfully” is not a test, because it only says that the data was written.
The Polish rules described above do not set a test frequency. We recommend four levels:
- Daily: automatic checksum verification of every copy, and a designated person who reads the report.
- Monthly: restoring single objects, for example one document from the electronic records repository and one imaging study.
- Quarterly: restoring the whole database of one critical system and starting the application.
- Yearly: rebuilding the environment from scratch in an isolated network, including identity services.
The quarterly test, step by step
- Choose the system and the restore point. The point is chosen by someone outside the team that runs the backups.
- Prepare an isolated network with no connection to production or to the internet.
- Restore the data and write down the time of each stage.
- Check database consistency with the database engine’s tools, start the application and log in with a test account.
- Ask a key user to check a few random patients: history, results, images, and electronic signatures that verify correctly.
- Compare the total time with the RTO, and the age of the restored data with the RPO.
- Write the report with corrective actions, deadlines and owners. Hand it to the head of the entity (the managing director or board, or the director of a public hospital) or to the person entrusted with supervision.
- Delete the test environment. It holds full patient data and needs the same protection as the production system.
What the report contains
The report states the date, the system, the restore point, the people who performed and verified the test, the time of each stage, the result of the verification, deviations from RTO and RPO, and recommendations.
In Poland the report also has a legal role. In an entity covered by the KSC Act it is part of the operational documentation, meaning the records that prove activities were carried out (Article 10). For every provider it is evidence of the periodic assessment of the effectiveness of safeguards required by § 1(5)(5) of the medical records regulation. An auditor will ask for restore test reports too, as we describe in our article on security audits for healthcare entities in Poland.
Who may access the backups and how should they be encrypted?
Only people authorised by the data controller may access the backups, and every copy that leaves the server room should be encrypted, because a backup holds the complete records of all patients. In Poland, the Patient Rights Act (in Polish) allows data from medical records to be processed by people who maintain the IT system and ensure its security, on the basis of an authorisation from the data controller, and these people are bound by secrecy also after the patient’s death (Article 24(2) and (3)). So the backup administrator needs a formal authorisation.
If an external company makes or stores the copies, you need a data processing agreement (Article 28 GDPR). Under the Polish Patient Rights Act, performing that agreement must not disrupt the provision of healthcare services, in particular access to records without undue delay, and when processing ends the data must return to the provider (Article 24(5) and (7)).
Encryption moves the risk from the medium to the key. Losing the key means losing the backup, so:
- keys and repository passwords are stored separately from the copies, in a password manager with access control such as Bitwarden, and in a sealed envelope in a safe,
- more than one person has access to the key, and every use of it is recorded,
- once a year a trial restore is done using only the copy of the key from the safe,
- every restore of patient data, including a test, leaves a trace: who, when, what and for what purpose.
The right to restore is as sensitive as HIS administrator rights, because it lets someone read any record while bypassing the controls in the application. We discuss how to grant and review such rights in our article on who can access patient data.
How long must medical records and their backups be kept?
In Poland, medical records are kept as a rule for 20 years from the end of the calendar year in which the last entry was made (Article 29(1) of the Patient Rights Act), but that does not mean every backup has to be kept for 20 years. The duty concerns the records, not individual copies: it is met by the production system or an archive in which the records stay available for the whole period. Backups protect that resource, so their retention is set by what you need for recovery. The periods below are Polish. If you operate in another country, check the national rules; the reasoning about backups stays the same.
| Type of records | Retention period in Poland (Article 29(1)) |
|---|---|
| Medical records, general rule | 20 years from the end of the year in which the last entry was made |
| Death of the patient as a result of bodily injury or poisoning | 30 years from the end of the year in which the death occurred |
| Data needed to trace blood and blood components | 30 years from the end of the year in which the last entry was made |
| Records of children up to the age of 2 | 22 years |
| X-ray images kept outside the patient’s records | 10 years from the end of the year in which the image was taken |
| Referrals for tests and doctors’ orders | 5 years from the end of the year in which the service was provided; 2 years from the end of the year in which the referral was issued, if the service was not provided because the patient did not attend |
Retention of the backups
A typical scheme keeps daily copies for a few weeks, weekly copies for a few months, monthly copies for a year and yearly copies for a few years. This is an example, not a standard. A longer history helps when data corruption comes to light months later, or when the attacker was in the network long before the encryption.
Once the retention period has passed, Polish law requires the records to be destroyed in a way that makes it impossible to identify the patient (Article 29(2)). Old backups still contain them until the backups themselves expire, so very long backup retention extends the real time for which the data is kept. How to handle data in backups after the retention period needs individual confirmation and should be written into a procedure agreed with the data protection officer.
Long-term storage and format migration
Over twenty years a provider will replace its servers and storage several times, and often the medical system itself. The Polish regulation requires plans for long-term storage, including moving records to new media and new formats where continuity of access requires it (§ 1(5)(6)). The plan should answer three questions:
- What happens to the data when the system changes? The export of all data in the standards referred to in § 1(6)(8) is made and checked before the old system is switched off.
- How long does the old system run in read-only mode? A virtual machine with unsupported software is a temporary solution.
- Who opens the oldest documents once a year and confirms that they are readable and that the signatures can be verified? How to keep signatures verifiable in the long term has to be agreed with the system vendor.
Records in the cloud or in a SaaS system: who is responsible for the backup?
The healthcare provider is responsible for protecting the records, also when the system runs on a vendor’s infrastructure, and the vendor is responsible for what the contract says. The sentence “the vendor makes backups” does not close the subject until the provider knows how often, where and with what test results. In Poland, essential and important entities must additionally take account of the security and continuity of the ICT supply chain (Article 8(1)(2)(e) of the KSC Act).
Questions to put to the system vendor:
- How often are backups made and how long are they kept?
- Where are the copies located and are they separated from the production environment?
- When was a restore last tested, and can we receive the result of the test?
- Which RTO and RPO does the contract guarantee, and what happens if they are not met?
- How often and in what format can we download an export of all our data?
- How and by when will the data be handed over when the contract ends or the vendor ceases trading?
A sensible safeguard is your own periodic export of the data, stored independently of the vendor. It takes space, encryption and a regular check that the export can be opened, but it frees the provider from dependence on one company. The contract clauses are described from the vendor’s side in our article on what hospital contracts will require from a medical software vendor.
Common mistakes and a remediation plan
- The backup server is a member of the production domain, and its administrator logs in with the same account as on the other servers.
- The only “copy” is replication to a second storage array, or snapshots on the same array.
- The HIS database is backed up, but the integration configuration, the certificates and the shares with scans are not.
- Nobody has restored the whole system since it went live, so the RTO is a number from the tender documents.
- The key that encrypts the backups is stored only on the server that makes them.
- The provider does not know what backups its cloud vendor makes.
This week, check whether a copy exists that cannot be deleted from a domain administrator account, and ask for the date of the last full restore of the HIS database. This quarter, write down the backup scope using the asset table, move the backup system out of the domain, run the first quarterly test with a report and put the questions from the list above to your vendors. Within a year, carry out a full rebuild of the environment in an isolated network and approve the long-term storage plan.
FAQ: frequently asked questions
How often should medical records be backed up?
Often enough that the data lost does not exceed the period the provider has accepted for that system. The Polish rules discussed here do not set a frequency. In systems where entries are made all day, a nightly copy alone means the risk of losing a whole day of work, which is why transaction log backups are added during the day.
Does the law require healthcare providers to test their backups?
In Poland, yes, although not always in so many words. The medical records regulation requires a periodic assessment of the effectiveness of safeguards (§ 1(5)(5)), and the KSC Act requires essential and important entities to test their business continuity and recovery plans. In practice, a documented restore test is the only way to show that a backup works.
Can a medical records backup be stored in the cloud?
The Polish provisions discussed in this article do not prohibit keeping copies with an external provider. They require a data processing agreement that does not disrupt access to the records, and secrecy on the provider’s side. The location of the data and the detailed terms have to be confirmed individually before the contract is signed.
How long must electronic medical records be kept in Poland?
As a rule, for 20 years from the end of the calendar year in which the last entry was made. The Patient Rights Act provides exceptions, including 30 years where the patient died as a result of bodily injury or poisoning and 22 years for the records of children up to the age of 2. Article 29 does not differentiate these periods by the form in which the records are kept.
Is a backup enough for electronic medical records archiving?
No. A backup is for restoring a system after a failure and has limited retention, while an archive provides access to the records for the whole required period, also after the system and the formats have changed. The archive needs a backup of its own.
Does a small medical practice have to back up its medical records?
Yes. In Poland, the requirement to protect records against destruction, damage or loss applies to every healthcare provider regardless of size. A small practice is usually outside the KSC Act, but the medical records regulation and the GDPR apply to it in full. If it uses cloud software, it should know what backups the vendor makes.
How we can help
Remote Admin designs and runs backups for healthcare providers. We inventory the places where records are created, set up backups stored in a Polish data centre, run restore tests with a written report and prepare the procedures the law requires. The scope and the way we work are described on the data backup service page. Pricing is by custom quote.
If you are not sure whether your current backups would survive an attack, get in touch. We start with a configuration review and one trial restore.
