rpl122 wrote on Thursday, September 06, 2007:
After going through all the tedium of installing, configuring and debugging OpenEMR, SSL, phpGACL, FreeB etc. I was looking for a way to back up my entire system and not just the data.
Here are two ways that worked for me:
While I installed Linux/OpenEMR in /dev/hda1 of the hard drive, I created another disk partition /dev/hda3 exactly the same size as /dev/hda1 using fdisk utility. Then I cloned hda1 to hda3 using the dd command, specifying if=/dev/hda1 and of=/dev/hda3 and appropriate bs and counts. The idea now was to create an additional boot option in the mbr of /dev/hda1 pointing to the kernel copy in /dev/hda3. I also had to edit the /etc/fstab file to specify that /dev/hda3 rather than /dev/hda1 was to be mounted with that other boot menu option. Well, it worked as expected. No surprise, but a potentially useful way to keep a backup of your entire installation in case you mess things up and don’t want to start from scratch.
A second method was to make a tar.gz file of the entire file structure in the hda3 partition. This required me to boot up in the hda1 partition, mount the hda3 partition and type a tar zcvf command. My 40 Gig partition was shrunk to a 2 Gig archive. To test this, I wiped out all content of the /dev/hda3 partition and then restored the blank, mounted, partition from the tar.gz file. This restored the system, the data and settings perfectly. Again, no real surprise, but potentially useful.
Next step is to try using the 2 Gig tar.gz file to transport a complete, tweaked and debugged installation of OpenEMR and all the accessories on an entirely different computer. My hope is that kudzu and plug and play functionality will make this feasible. If it works, then it should be possible to put the whole configured system into a downloadable file. One would then have a real system – not a virtual machine. Now if that works, that WILL be surprising.
Ronald Leemhuis MD