Restore Instructions

jenjhall wrote on Friday, April 08, 2011:

Could someone please spell out the procedure for restoring OpenEMR with only the backup file created using the “Create Backup” button within the Administration>Backup view?  When I attempted this I was left with only empty databases and I didn’t have any idea what to do with the phpgacl file.  An error was generated when I tried to import tables using the openemr.sql file also.  I don’t understand what is the purpose of two of the 3 files I guess.  Thanks - Jen

jenjhall wrote on Friday, April 08, 2011:

Sorry, I forgot to add that I am using OpenEMR 4.0 and Ubuntu 10.04

bradymiller wrote on Friday, April 08, 2011:

hey,

Shouldn’t have the phpgacl file. Looked through the backup.php, and there is a bug. Posted the fix to ‘master’ (development tip) branch. If it works out then will include it in the next 4.0 patch. In ubuntu can run the restore script to restore at:
openemr/contrib/util/restore
(note that the phpgacl file that is erroneously there could potentially break the restore script).

-brady

jenjhall wrote on Friday, April 08, 2011:

Ok.  It seems to work fine as long as the phpgacl file is removed from the emr_backup.tar file first. Thanks. I needed to know that this could be reliably accomplished. -Jen

rayaz wrote on Friday, April 08, 2011:

Hi,

Thanks Brady, for fixing the backup.php. Can confirm it works.

Regards

Rayaz