Why OpenEMR backups after 8.3 are your responsibility
A reliable backup for a self-hosted OpenEMR has three parts: the database, the sites directory and a restore that your team has tested. If your team relied on the built-in backup in an earlier release, you now own all three. The change applies from OpenEMR 8.3.0, released on August 18, 2026, so any upgrade to 8.3 or later, whether on a bare server, in Docker or in a multisite installation, leaves backup planning to your team. Confirm the exact wording in the release notes for each version you run, including whether the earlier tool was removed or only deprecated, and whether its settings or scheduled jobs still exist after the upgrade. Check the OpenEMR releases page before you schedule the upgrade.
Each part protects something different. The database holds the clinical, scheduling, billing and audit records. The sites directory holds uploaded documents and per-site configuration, so a database-only copy restores an incomplete system. Docker deployments add a layer of location risk, because containers are replaceable and the data lives in the volumes or host paths they mount. Multisite installations multiply the problem, since each site has its own data, and a single job that covers one site can silently miss another. Your first task is to write down where each site's database and sites data physically sit in your environment, then confirm that every location is covered by the backup job.
The HIPAA Security Rule applies to covered entities and their business associates for the electronic protected health information they maintain, whichever software holds it (45 CFR Part 164 Subpart C). No Security Rule standard requires certification, so the evidence you show an assessor is your backup configuration, its run history and the results of your restore tests. Before upgrading past 8.3, take a full backup, record the current OpenEMR version and database version, and run one restore into a separate environment. A restore that has never been performed is an assumption, not a backup.
How the database, sites directory and backup repository fit together
The flow starts at the OpenEMR application container, which writes clinical data to the MySQL or MariaDB database and patient files to the sites directory, including the documents folder. openemr-docker-backup.sh reads from both, so the database and files are captured in the same run. The script passes the result to a restic repository, which can sit on local disk, SFTP or S3-compatible storage. The repository password is held in a separate key boundary outside the host, so a copy taken from the host alone cannot be opened. The offsite copy holds only encrypted repository data. Confirm that the key is stored apart from the offsite copy and that a restore has been tested.
Data flow from the OpenEMR host to the encrypted restic repository and offsite copy.
Backup options and when each fits
This table compares four ways to back up a self-hosted OpenEMR after the built-in tool was removed, covering when each fits a single clinic or a multisite group. Read each row for the trade-off in recovery point, restore effort and the operator skill the option assumes.
| Option | Fits best | Recovery point and restore effort | Operator skill and watch-outs |
|---|---|---|---|
| openemr-docker-backup.sh run from cron on the host | Single-site clinic running the Docker deployment with one database and one sites directory | Recovery point equals the last scheduled run. Restore means reloading the database dump and copying the sites directory back, which is simple but manual. | Needs cron, Docker and shell skills. The script writes to the host, so a copy must still leave the host or the backup shares its failure domain. |
| External backup host pulling over SSH | Single-site or small group where a separate machine can reach the OpenEMR host | Recovery point is set by the pull schedule. Restore is similar to the script output, with the copy already held off the server. | Requires SSH key management, a locked-down backup account and monitoring of pull failures. Confirm the script's output paths and file names before automating the pull. |
| restic repository on local, SFTP, S3-compatible or other supported storage | Multisite groups and any site that needs encrypted, deduplicated, offsite copies with snapshot history | Each run creates a restorable snapshot by ID, so recovery point and history depend on the schedule and retention you set. Restore uses restic restore, which needs the repository password and tooling on the recovery host. | Needs restic and repository key handling. Run periodic restic check, and use --read-data on a schedule to confirm stored data is intact. Losing the repository password means losing the backups. |
| Snapshot-level backups of the host or volumes | Sites where the whole virtual machine or volume must return quickly, often alongside database-level backups | Restores the whole machine to the snapshot time, which is fast for full recovery but cannot restore a single site or table without extra steps. | Depends on the hypervisor or cloud platform. Snapshots of a running database may be inconsistent unless the database is quiesced or dumped separately. Confirm this with your platform vendor. |
| Multisite group with per-site backups | Organizations hosting several OpenEMR sites on one installation | Per-site backup lets one site be restored without touching others, but each site's database and documents directory must be captured together. | Operators must map each site to its database and sites/ directory. Restore drills should prove that one site can be recovered alone. |
Set up a backup for OpenEMR in order
This sequence builds a backup you can trust for a self-hosted OpenEMR after the built-in backup tool is gone. Each step produces a dump of the database, a copy of the sites directory, an encrypted restic repository and a tested offsite copy. Every step ends with a check you can run yourself.
Confirm the OpenEMR version and runtime
The system administrator records the running OpenEMR version, the PHP version and the database server version and type. Recent OpenEMR releases require PHP 8.3 or later and run on a MySQL- or MariaDB-compatible database, so confirm those against the release notes for your version in the OpenEMR releases page. Check the output of your PHP and database version commands and write them into a short record for the backup runbook. The step is complete when the record matches what the running containers or servers report, and when you know which release notes apply to your version.
Inventory the database and sites directory
The administrator lists everything the backup must capture: the OpenEMR database, the sites directory including the documents stored under each site, the site configuration files and any custom files or certificates the deployment depends on. For Docker deployments, map each item to the volume or bind mount that holds it, and confirm the layout in your own version because the paths differ between installs. The step is complete when the written inventory matches the list of volumes or mounts on the host and includes the documents folder for every site.
Run openemr-docker-backup.sh once and inspect the output
Before trusting the script on a timer, the administrator reads its header and options, confirms where it writes its output and runs it once by hand in a maintenance window. Inspect the database dump and the files it produces, check that file sizes are plausible for your installation and confirm that the archive contains the database and sites content from your inventory. Keep the output directory outside the OpenEMR web root. The step is complete when a dry look at the archive contents shows every item from the inventory, and the script exits without errors.
Create an encrypted restic repository
Install restic on the backup host and choose a storage target: a local directory, SFTP, a rest-server, an S3-compatible bucket or another backend listed in the restic documentation. Run restic init to create the repository, which encrypts all stored data with AES-256 by default and requires a repository password. Store that password in a secrets manager, not in the script, and keep a separate copy under dual control. The step is complete when restic snapshots returns an empty list and restic check reports no errors on the new repository.
Schedule the backup and retention policy
Create a cron job or systemd timer that runs openemr-docker-backup.sh first, then restic backup on the generated output, then restic forget with explicit keep rules and a prune step. Write the retention rules in the runbook so the number of kept snapshots is a decision, not a default. Send the job's exit status and log to a location the operations team reviews. The step is complete when one scheduled run creates a new snapshot, restic snapshots lists it with the expected tags or paths, and the forget run reports the snapshots it kept.
Schedule periodic restic check runs
Add a separate schedule for restic check, which verifies the structure of snapshots, trees and pack files. Run a full data read with restic check --read-data on a less frequent schedule, or use --read-data-subset to spread the reads across runs, so pack files are read back and confirmed unmodified. Wire failures into the same alerting channel as backup failures. The step is complete when a scheduled check runs, returns a zero exit code, and a deliberately failed check triggers the alert.
Copy the repository offsite
Replicate the backup to a second location that is separate from the OpenEMR hosts and from the first repository's storage account, with separate credentials. Keep the repository password available to the recovery team without depending on the production server. Confirm with your storage provider how object versioning, deletion protection and access logging are configured for the offsite target. The step is complete when a snapshot created on the primary is present at the offsite location and restic check passes against that copy.
Restore a snapshot to a scratch location
Restore one snapshot by ID with restic restore into an empty directory on a separate host, never over the live installation. Compare the restored database dump and sites files with the inventory from the earlier step, and confirm the database can be loaded into a scratch database server. Record the snapshot ID, the time taken and any gaps in the runbook. The step is complete when the restored files match the inventory and the restored database loads without errors, which confirms the backup is usable before you depend on it.
How per-site backups change for multisite OpenEMR
The unit of backup in a multisite OpenEMR is each site, so every site directory under sites/ must be in scope, each paired with the database state it depends on. Each site directory holds its own configuration and its own documents tree, so a job that captures the code, or only the first site, leaves the other sites unrecoverable. Before choosing a job layout, list every site directory and map it to its database and schema. Then decide between one job that backs up the whole sites/ tree and one job per site. A single job gives one snapshot set with a consistent view of all sites and is harder to forget when a site is added. Separate jobs allow different schedules, retention and restore permissions per site, but they need a checked process for new sites, because a missing job fails silently.
Test that one site restores without touching its neighbors before you rely on per-site jobs. Restore into an empty scratch directory and a scratch database, never over the live sites/ tree, so production sites stay untouched during the drill. Restore the chosen site directory and its database copy, point a non-production instance at them, and check that the site logs in, that its documents open and that the other sites behave as they did before the drill. Use restic restore with the snapshot ID, and confirm the path filter options for your restic version before you script the procedure. Run restic check --read-data-subset as part of the same exercise so you know the data you restored is intact. Record the steps and elapsed time, since they become the restore procedure for the next person who owns a site.
Confirm the following in the deployment documentation before relying on any of this. Ask whether each site has its own database or shares a schema with other sites, because that decides whether one site can be restored alone or must be coordinated with a database restore. Confirm where each site's configuration file lives, and whether any site uses symlinks or a documents location outside sites/. Check that the Docker volume or host layout mounts every site directory. Document the process for adding a site, including who creates its backup job and who runs its first restore test. Finally, confirm that the block on direct web access to sites/*/documents applies to every site, including sites created after the initial setup, as described in the Securing OpenEMR guide.
Encrypting and protecting backup copies of patient data
A backup of an OpenEMR database and sites directory holds the same ePHI as the live system, so it needs the same protection. The cards below cover what restic encrypts, where the keys live, who can reach the storage, how the live server keeps documents out of web reach, and what to put in writing when a third party holds copies.
Repository encryption with restic
restic encrypts all data it writes to a repository with AES-256 in counter mode and authenticates it with a Poly1305-AES message authentication code. This protects copies sitting in object storage or on a remote host. It does not protect the live server, and it does not replace access control on the storage. Confirm the encryption behavior for your restic version and check that the repository password is set on every backup host.
restic referencesRepository password custody
The restic repository password is the key to every snapshot, so losing it makes the backups unreadable. Store it in a password manager or secrets vault controlled by at least two named people, separate from the backup host itself. Record where the password is kept in the restore runbook, and test that someone other than the backup administrator can open the repository during a restore drill.
Access to backup storage
Limit who and what can write to, read from, or delete the backup target. A backup job usually needs append rights only, so a compromised OpenEMR server should not be able to erase its own history. Scope cloud credentials to one bucket or path, use separate credentials for backup and restore, and log access to the storage account. Confirm these options with your storage provider.
Blocking web access to sites/*/documents
The sites/*/documents directory holds patient uploads, and the Securing OpenEMR guide says to block direct web access to it. Backups copy this directory, so an exposed documents path on the live server can leak patient files regardless of how the backup is encrypted. Verify from outside the network that a direct request for a document path is refused, and repeat the check after each upgrade.
Securing OpenEMR guideOffsite copy controls
An offsite copy moves ePHI outside the building, so decide the location, the provider's data handling terms, and the regions where data may be stored before the first upload. Keep at least one copy that the live server's administrator credentials cannot reach. Ask the provider for their encryption, access logging, and deletion procedures in writing.
Business associate terms for hosted copies
If a third party hosts or can read backup copies of ePHI, 45 CFR 164.314(a)(2)(i) requires a business associate contract. It must require the provider to comply with the Security Rule, flow the same terms to subcontractors that handle ePHI, and report security incidents. Involve your privacy or legal lead before signing, and do not treat the contract as proof of compliance.
45 CFR 164.314 textProving a backup restores with restore drills
A backup is only proven when a restore has been completed from it, so the first thing to build is a restore drill that runs on a schedule and on a host that is not the production server. Pick a snapshot by ID (listed with restic snapshots), restore it with restic restore into an empty directory on a separate host, and then bring up the database dump and the sites directory from that restore in a stack that matches the production OpenEMR version. Restoring to the same server invites false confidence, because the drill can pass by reading files that still exist locally. Confirm the restored copy by logging in with a test clinical user, opening a sample patient record, and checking that documents under the site's documents area open. Record which snapshot ID was used, the time the restore finished, and who ran it.
Verification is a second, separate check. The restic documentation recommends running restic check periodically, and restic check --read-data reads back every pack file to confirm the stored data is unmodified, which is the only option that tests the bytes themselves. On large repositories, --read-data-subset lets you rotate through the data over several runs instead of reading everything at once. Schedule the full check with the same care as the backup job itself, and alert on a non-zero exit code. Confirm with your storage provider how long a full read of your repository takes and what it costs to download, because those figures determine how often a full check is practical. Also confirm how the restore host obtains the repository password and encryption material, since a drill that depends on a credential nobody can find has not tested recovery.
The drill record is the evidence a reviewer will ask for, whether that reviewer is an auditor, a customer security team, or your own compliance lead. Keep a dated log with the snapshot ID, the restore host, the OpenEMR and database versions, the checks performed, the result, and any defects found and fixed. Store it outside the system being backed up. Set the cadence in your written backup policy, and treat a failed drill as an incident to be tracked rather than a note to be overwritten. Under the HIPAA Security Rule, which applies to covered entities and their business associates for electronic protected health information, data backup and contingency planning are expected to be documented and tested, and this log is how you show that they are. Confirm with your compliance adviser which control requirements apply to your organization before you decide what the log must contain.
Limits to confirm before you rely on this backup
A backup script is only as good as the environment it runs in. The items below are the assumptions this approach depends on, and each one should be confirmed in your own deployment before you treat a backup as recoverable.
Release and removal fit
Confirm that the built-in backup removal applies to the exact OpenEMR release you run, and that you are not relying on a menu or procedure from an older version. The release you run decides which backup path applies, so record the version in your runbook. Check the release notes for each upgrade you plan, because security fixes in 8.3.0 and 8.4.0 may also require a patch window.
OpenEMR releasesDatabase version compatibility
Recent OpenEMR releases require PHP 8.3 or later and run on a MySQL- or MariaDB-compatible database. Confirm that your database server version is supported by the release you run, and that your dump tool matches it. A dump taken with an incompatible client can fail silently or produce a file that will not restore cleanly, so test the restore on the same version you run in production.
Docker volume layout
Confirm which host paths or named volumes hold the database and the sites directory in your Compose or container setup. The sites directory contains patient documents and configuration, so a backup that captures only the database will not restore a working system. Write down the exact mount points and check them after every change to the stack, because a renamed volume can leave the backup job pointing at an empty path.
Retention set by your policy
Retention is a decision for your compliance and records owners, not for the backup tool. Ask them how long daily, weekly and monthly copies must be kept, and whether any copies must be deleted on a schedule. HIPAA's Security Rule requires documented policies but does not, by itself, set a retention period for backups, so confirm the requirement with counsel or your compliance lead before you configure pruning.
Offsite storage capacity and bandwidth
Offsite copies consume storage and network capacity every time they run. Measure the size of your database and sites directory, the rate at which they change, and the upload bandwidth available overnight. No storage or transfer figure is provided for this setup, so measure a full backup and an incremental run in your own environment before you set a schedule or a storage quota with your provider.
- Latest release checked
- 8.4.1
Restore time and backup script version
No restore time is established for this setup, so measure it with a timed restore drill into a separate host before you state a recovery objective. Also confirm that the backup script version matches the OpenEMR release in use, since a script written for one layout may not handle another. Store the script under version control with the release it was tested against.
Questions teams ask before building OpenEMR backups
What does a self-hosted OpenEMR backup cost to build and run?
Cost comes from labor, storage and drill time, and only the storage line normally recurs. Labor is the largest component: someone must script the database and sites directory copy, schedule it, move it offsite, encrypt it and prove that a restore works. restic is free software under the BSD-2-Clause license, so the tool itself adds no license fee. The storage target you choose, whether a local disk, an SFTP host or an S3-compatible service, bills by capacity, transfer or requests. The main cost drivers are the size of the database and sites directory, the number of sites, how long you keep snapshots and how many drills you schedule. Ask any provider for a written quote that separates one-time build work, recurring storage and support, and the drill schedule. DeployOpen quotes follow from the agreed written scope.
How long does a first working OpenEMR backup take to build and test?
No single duration fits every environment, so treat any one number as unverified until it is tied to a defined scope. Build time depends on how many sites you run, how large the database and sites directory are, where copies must go and whether your network can reach the chosen storage target. Testing adds time because a backup only counts after a restore has been performed on a separate host and the result has been checked against the expected system. Ask for a sequence with clear checkpoints: a dump and copy job, an encrypted offsite repository, a scheduled integrity check and a first restore drill signed off by your named owner. A fixed-scope proposal should state these milestones and the dates agreed before work begins.
What must our team provide before an OpenEMR backup project starts?
Your team sets the boundaries of the work, so have these ready at kickoff:
- Shell and Docker or host access to the machines running OpenEMR, with a place for the backup job to run
- Database credentials and confirmation of where the sites data is stored
- A storage target with a capacity plan, retention rules and a separate account used only for backup writes
- A named owner who approves restore results and holds the repository passphrase with a second authorized person
- A window for the first restore drill, plus time on a separate restore host
Confirm the window with your clinical and IT leads. The owner should be able to make recovery decisions and sign off the drill results.
Can one in-house admin build OpenEMR backups alone?
Often a single experienced administrator can build the job, but running it alone creates a single point of failure. The work needs Linux shell skills, Docker or host-level access, database dump and restore knowledge and familiarity with restic commands such as restic backup, restic check and restic restore. The minimum for a safe build is someone who knows OpenEMR's storage layout and can run a restore without help. Plan for a second person who can perform a restore when the primary administrator is unavailable, and keep the procedure written down. Ask whether the admin has previously restored a full system to a clean host, since building a backup and proving a restore are different skills. If gaps exist, a fixed-scope engagement can cover the build and hand over a tested runbook.
How often should we run OpenEMR restore drills?
No standard or OpenEMR document sets a single frequency, so set it from your risk tolerance and how often the data changes. restic's documentation recommends periodic restic check runs and recommends restic check --read-data for full data verification, which reads pack files back to confirm stored data is unmodified. Those checks verify the repository, but they do not prove that OpenEMR starts and serves correct records after a restore. Pair them with restore drills on a schedule your owner approves, and run an extra drill after a database upgrade, a PHP change or any change to the sites directory layout. Record the snapshot ID, the steps performed, the checks run and any errors, then keep those records for your audit file.
Does a backup alone satisfy HIPAA for an OpenEMR system?
No. A backup supports the contingency and availability parts of the HIPAA Security Rule, but the rule also covers access control, audit, risk analysis, workforce policies and business associate terms for electronic protected health information. There is also no HIPAA certification to point to instead. HHS states in its FAQ from 2003 that no Security Rule standard requires an entity to certify compliance, and that private certifications do not prevent HHS from later finding a violation. Treat any vendor claim of HIPAA certification with caution, and ask for evidence such as your risk analysis, your backup procedure, drill records and access logs. Your compliance lead or counsel decides what the rule requires for your organization.
Should OpenEMR backups be encrypted and stored offsite?
Yes, encrypt the copies and keep at least one outside the host that runs OpenEMR. restic encrypts all data it stores in a repository with AES-256 in counter mode and authenticates it with a Poly1305-AES message authentication code, so an offsite target such as S3-compatible storage or SFTP holds ciphertext. The critical item is the repository passphrase or key. If it is lost, the backups cannot be read, so store it in a separate secrets system with at least two authorized people. Confirm the offsite provider's region, contract terms and access logging against your own policy for ePHI. Use separate write credentials so a compromised host has less ability to delete old snapshots, and confirm whether your storage supports retention locking. Encrypt the volumes where live OpenEMR data sits as a separate control.
Do the restic and OpenEMR licenses affect how we back up?
Generally, running a backup tool beside OpenEMR does not change OpenEMR's license. restic is licensed under BSD-2-Clause, which permits use with few conditions, and OpenEMR is licensed under the GNU GPL v3.0. The GPL governs OpenEMR itself, so the obligations that matter arise if you modify and distribute OpenEMR code, for example custom modules or patched scripts. Your organization should record which components it runs, which versions it uses and whether any custom code is distributed beyond the organization. Confirm the position with your counsel for your own circumstances, since this answer is general information and not legal advice.
What HIPAA and HITRUST expect from backup evidence
The HIPAA Security Rule (45 CFR Part 164 Subpart C) applies to covered entities, meaning health plans, health care clearinghouses and covered health care providers, and to their business associates, for all electronic protected health information they create, receive, maintain or transmit. A self-hosted OpenEMR deployment therefore falls under the rule as soon as it holds patient data, and the backup copies of that data are part of the same scope. The rule's contingency planning standards expect a covered entity to be able to recover ePHI after a failure, so your backup design and restore records are the evidence an assessor will ask to see. HHS enforces the rule through complaints, compliance reviews and audits, not through a certification program. HHS states that no Security Rule standard requires certifying compliance, and private certifications do not prevent HHS from later finding a violation. Any vendor or partner who offers a "HIPAA certified" backup product is describing a marketing position, not a regulatory status.
HITRUST is a voluntary assessment, not a regulation. The HITRUST CSF is versioned, and the current release referenced in the researched facts is CSF v11.9.0, available from 24 September 2026. Assessments are scored against a specific CSF version, and certification terms differ by assessment type: e1 and i1 certifications last one year and r2 certifications last two years. Before you design the backup procedure, confirm with your compliance lead which CSF version and assessment type your organization is working toward, and ask which backup, recovery and data protection controls the assessor will test. Those answers decide what evidence you need: schedules, retention settings, offsite copy locations, encryption configuration and dated restore test results. Ask the assessor to confirm how they want restore drills documented before you start, because a backup that runs without a recorded test will not satisfy most assessment requests.
How DeployOpen scopes and delivers OpenEMR backup work
DeployOpen treats an OpenEMR backup as a documented, tested recovery process inside your own infrastructure, not as a single script. The work is planned around your deployment, storage and recovery requirements, then built, verified with a restore drill and handed over to your team.
How we scope
- Inventory your OpenEMR deployment, including the database, the sites directory, Docker volumes and whether you run multisite.
- Agree recovery point and recovery time targets with your compliance and clinical stakeholders before choosing tooling.
- Confirm storage locations, encryption requirements and retention periods in a written scope before any work starts.
How we build
- Configure the backup job, scheduling and offsite copies in your own cloud accounts, data centers or air-gapped network.
- Set up encrypted repositories and key handling so backup data is protected in transit and at rest.
- Run restore drills into a separate environment and document the results, including any gaps found and how they were fixed.
How we hand over
- Deliver written runbooks covering backup schedules, restore steps, credential ownership and per-site procedures for multisite installs.
- Walk your operations team through a live restore so they can repeat the procedure without outside help.
- Provide evidence of configuration and drill results that your compliance team can review during an assessment.
How we support
- Fixed-scope engagements end with a defined handover, and any further work is agreed in writing.
- Ongoing support, upgrades and periodic restore testing are available as a retainer, scoped to your environment.
- Revisit backup jobs and restore procedures when you upgrade OpenEMR or change storage, so recovery keeps working.

