xiaoanri wrote on Saturday, August 09, 2014:
last few days i have to do a restore from the backup file. after multiple tries, i was able to restore openemr from scratch. it was manual, but it did work.
i have to do a fresh install of ubuntu, i choose 14.04.1LTS. i installed LAMP server. after that, i moved the backup file to a working directory, and decompressed the file:
tar xvf oemr_backup.tar
from working directory, go to var/backup/oemr_backup/latest, you will find daily_openemr.sql.gz and daily_openemr.tar.gz.
make openemr directory under /var/www, and move the daily_openemr.tar.gz to /var/www/openemr. now decompress the file by: tar -vxzf daily_openemr.tar.gz, then delete the file. you will find the openemr directory is now restored.
now back to working directory and do: gunzip daily_openemr.sql.gz, you will see the new file daily_backup.sql.
log on to mysql by: mysql -uroot -p and put your password, and do: mysql> create database openemr;
then import the database by mysql -uroot -p openemr < openemr.sql
then the restore is working. go back and delete the tar, and gz files.