User Tools

Site Tools


en:manuals:ehr:app:saverestore

Backup and restore your data

  • A specific plugin to automate backup & restore is in development
  • In the meantime, you can use those instructions
  • Those instructions are valid up to version 0.9.9

Backup

Single workstation install (SQLite)

  • Backup your documents folder. It is
    • located in your personal folder
    • named freehealth
  • Backup your configuration folder. It is
    • a hidden folder
    • named .freehealth
    • located inside your personal folder

To be able to see this hidden folder, you may need to set your document manager to show hidden files and folders

  • That's all.

Your configuration files and your data (medical files database, documents, datapacks) are safe Linux/Mac script :

# get in your personal folder
cd ~
# create a tar.gz archive containing all your data
DATE=`date "+%Y%m%d_%H%M%S"`
tar czvf freehealth_bkup$DATE.tgz ~/.freehealth ~/freehealth

Network install (MariaDB)

  • Backup your documents folder. It is
    • located in your personal folder
    • named freehealth
  • Backup your configuration folder. It is
    • a hidden folder
    • named .freehealth
    • located inside your personal folder

To be able to see this hidden folder, you may need to set your document manager to show hidden files and folders

  • Backup FreeHealth MariaDB databases (for historical reasons, each FreeHealth database starts with fmf_):
    	fmf_agenda
    	fmf_alerts
    	fmf_category
    	fmf_dosages
    	fmf_episodes
    	fmf_patients
    	fmf_pmh
    	fmf_templates
    	fmf_users
    	fmf_xmlforms
  • Backup FreeHealth MariaDB users, you could do that by creating a backup of the mysql database which contains all MariaDB users
  • We recommend that you use the command mysqldump (GNU/Linux, Mac) or graphical user interface free software phpMyAdmin (GNU/Linux, Mac, Windows)
  • If you need more information please ask on the forum

Restore

To restore or migrate your data, it is recommended to use the same FreeHealth version or the version immediately superior. If there is more than one intermediate version between the version used to backup data and the version you're trying to restore it to, please read changelogs carefully for all versions. When in doubt or if a problem arises, ask for help on the forum.

Single workstation install / SQLite

  1. Copy previously backed up folders freehealth & .freehealth into your personal folder
  2. Launch the app

Network install / MariaDB

  1. Copy previously backed up folders freehealth & .freehealth into your personal folder
  2. Restore all MariaDB databases
  3. Restore all MariaDB users
  4. Launch the app
en/manuals/ehr/app/saverestore.txt · Last modified: 2018/03/13 16:07 by Jérôme Pinguet