FHIR DrillDocs

Operate the lab

Backups

What's worth keeping, how to back it up, and why the lab currently has no backups.

The lab currently has no automated backups. That's deliberate, because all the FHIR data can be regenerated. What can't be regenerated is your own work.

Back up your work, not the data#

Worth keeping How
Engine channels and settings Settings → Backup Config, or export each channel to git
Drill scripts, notes, .http files A git repository
Your profiles, FSH, test resources The same repository
Compose files and config ~/fhir-lab/*/compose.y*ml, nginx.conf, without the .env files

Database dumps (when you want them)#

Shell
# HAPI
docker exec hapi-db-1 pg_dump -U hapi -Fc hapi > ~/backups/hapi-$(date +%F).dump
# Engine
docker exec oie-db-1 pg_dump -U oie -Fc oie > ~/backups/oie-$(date +%F).dump

Restore:

Shell
docker exec -i hapi-db-1 pg_restore -U hapi -d hapi --clean --if-exists < ~/backups/hapi-2026-11-26.dump

Stop the HAPI or engine container before you restore, and start it again afterwards.

Before risky changes#

Take a dump of the database you're about to change, then try your upgrade or experiment. A quick dump of the engine database before an engine upgrade costs seconds and saves an evening.

FHIR Drill lab docs · synthetic data only · built 2026-11-26