This page documents how to perform a Backup of Bahmni Database / Files when using Docker version of Bahmni. You can also refer to this documentation, if you want to restore data from a back up.
Note that a running instance of Bahmni will have multiple services (like OpenMRS, Crater, OpenELIS, Dcm4chee, etc) depending on what are deployed / being used, hence your backup & restore commands should ensure you restore the correct Databases & Files.
Note that since Bahmni performs a two way sync of Patient Data across sub-systems (like between OpenMRS → Crater, or between OpenMRS → DCM4chee, etc), if you restore only ONE of the databases, but don’t restore the other, then the data across databases may go out of sync. It is therefore recommended that you take backups across ALL relevant databases at the same time, and while restoring, restore the “same” ones together – otherwise, one DB might be “ahead” of the “other”, and therefore go out-of-sync.
You may also need to backup/restore Bahmni files, like patient document uploads, lab reports, patient photo, etc which are stored in Bahmni file system and not in the database.