Restore crashing

joshuachai wrote on Friday, June 24, 2011:

Dear all,
I am testing / verifying the backup/restore function prior to rolling out the system in our small practice. I am running Ubuntu 10.10 on Virtualbox and installed OpenEMR 4.0 without any problem. I managed to use the (patched) backup script to make a tarball backup. However, something which I have never encountered happen when using the restore function in /openemr/contrib/util/restore script. Basically, the VM functions okay for only a short while after the restore before becoming erratic and then it will not boot up again and send me straight to initramfs (?recovery mode in Ubuntu). When I look around in the initramfs environment, the /dev, /root, /mnt etc folders are all empty!! This suggests to me the file system is corrupted. This repeats itself whether or not I restore OpenEMR on an existing well functioning Ubuntu installation or a freshly installed Ubuntu installation.

I have the following questions:-
1. When restoring to a freshly installed VM Ubuntu guest from a backup tar file, should I restore over an existing new installation?
2. Is it possible that the restore script somehow corrupting the file system?
3. Is there any reported known issue with particular Linux distro that we should avoid?

I would be really grateful for any advice - I am losing confidence to roll out the system now that I have no reliable to restore it should the future system crashes.

Please help~

Josh

bradymiller wrote on Tuesday, June 28, 2011:

hi,
The restore script is pretty limited in what it does. (copies openemr directory and creates the openemr database). What are the directories/subdirectories sitting in your backup file?
-brady