It is recommended to perform a daily / periodic backup of Bahmni data and store it offsite to avoid complete loss of data during a natural disaster, etc.
Steps to be Performed
Note:
These steps were tested on a CentOS v6.7 machine.
This could cause IO load on the machine, so please perform this on the Slave Machine, or when the EMR is not under load.
Known issue with above encryption step
There is a known issue in Linux Kernel with the above encryption step because of which system needs to be shutdown after copying backup to the external harddrive, then only harddrive gets detached. https://bugzilla.redhat.com/show_bug.cgi?id=809188
Encrypt USB/External drive using steps mentioned in https://miguelmenendez.pro/en/articles/encrypt-usb-storage-device-linux-unified-key-setup-luks.html. Note down the password in a secret location. And don't keep a password that is shared / re-used / easy-to-guess. This is a ONE TIME activity for the drive. Encrypting the USB has the advantage that even if you lost it, you will feel a little better that it will be very difficult for someone to get to the data.
Mount the hard drive at /media/USB.
Create directories in the USB (use the mkdir command):