Difference between revisions of "Backup and Recovery Using a System Image"

From OpenEMR Project Wiki
Line 12: Line 12:


=='''Macrium Reflect'''==
=='''Macrium Reflect'''==
[http://www.macrium.com/ Macrium Reflect] had been freeware in the past, but presently it is only available as a free 30 day trial.  The paid version has some very nice features like differential or incremental backups.  The OpenEMR user does not need the whistle and bells because system image creation and recovery can take place independent of the application during and after the 30 day trial period with the Windows PE Rescue Disk.  
[http://www.macrium.com/ Macrium Reflect] had been freeware in the past, but presently it is only available as a free 30 day trial.  The paid version has some very nice features like differential or incremental backups.  The OpenEMR user does not need the whistles and bells because system image creation and recovery can take place independent of the application during and after the 30 day trial period with the Windows PE Rescue Disk.  


It is safe to obtain [http://download.cnet.com/Macrium-Reflect-Free/3000-2242_4-10845728.html the download] from CNET.  The package is 121 MB containing Macrium Reflect, the .iso for the Windows PE Rescue Disk and the software to burn the .iso to a CD or a flash drive.
It is safe to obtain [http://download.cnet.com/Macrium-Reflect-Free/3000-2242_4-10845728.html the download] from CNET.  The package is 121 MB containing Macrium Reflect, the .iso for the Windows PE Rescue Disk and the software to burn the .iso to a CD or a flash drive.
Line 25: Line 25:
===Creation of Rescue Disk===
===Creation of Rescue Disk===
1. Open the software within the 30 day trial period and be certain that you are in the "Disk Image" tab in the upper left part of the screen.  Open "Other Tasks" in the left side bar and click "Create bootable Rescue media".
1. Open the software within the 30 day trial period and be certain that you are in the "Disk Image" tab in the upper left part of the screen.  Open "Other Tasks" in the left side bar and click "Create bootable Rescue media".
[[File:Rescue1.PNG]]
[[File:Rq1.png]]




Line 40: Line 40:




5. At "Burn Rescue Media", insert a CD; then click "Finish".  The Rescue Disk is ready for use.
5. At "Burn Rescue Media", insert a CD; then click "Finish".  With the completion of burning, the Rescue Disk is ready for use.
[[File:Rescue5.png|center]]
[[File:Rescue5.png|center]]




:A flash drive can be used in place of a CD.
:A flash drive can be used in place of a CD.
[[File:Stick.png|center]]
[[File:Rq6.PNG|center]]




Line 62: Line 62:


3. Wait for the files to load.
3. Wait for the files to load.
[[File:1bu2.png]]
[[File:2bu2.png]]




4. This is the next screen.
4. This is the next screen.
[[File:Bu3.png]]
[[File:1bu3.png]]




5. Check that you are in the "Disk Image" tab and click "Image this disk...".
5. Check that you are in the "Disk Image" tab and click "Image this disk...".
[[File:Bu4.png|center]]
[[File:1bu4.png|center]]




Line 95: Line 95:


11. To exit backup click "Close".
11. To exit backup click "Close".
[[File:Bu10.png|center]]
[[File:1bu12.png|center]]




Line 115: Line 115:


2. Be certain that you are in the "Restore" tab and click "Browse for an image file...".
2. Be certain that you are in the "Restore" tab and click "Browse for an image file...".
[[File:Rs1.png]]
[[File:1rs1.png]]




Line 123: Line 123:


4. Click "Restore Image".
4. Click "Restore Image".
[[File:Rs3.png|center]]
[[File:2rs3.png|center]]




Line 142: Line 142:




9. Repeat Steps 11 through 14 to exit Restore and to reboot.
9. Repeat Steps 11 through 13 to exit Restore and to reboot.





Revision as of 14:39, 23 June 2015

Introduction

The integrity of the Medical Record is of paramount importance to a practice. The Electronic Medical Record is effectively ephemeral unless the physician takes step to preserve it in more than one format. The user has the built-in utility to back up, but if the emr_backup.tar fails to restore; one is left high and dry.

Creation of a system image provides another layer of redundancy. It is inefficient to clone a hard drive if a great deal of it is empty space. It can take well over 24 hours to clone a hard drive.

Another use of a system image is to smite a particularly stubborn piece of malware that persists despite all previous efforts. Testing code changes can precipitate white screens of death. If a solution is nowhere to be found, restoring a system image is better than taking 10 grains of Acetylsalicylic Acid.

Clonezilla

Clonezilla is open source, but the instructions are not very easy to understand and the Graphical User Interface is a bit frumpy.

Clone.png


Macrium Reflect

Macrium Reflect had been freeware in the past, but presently it is only available as a free 30 day trial. The paid version has some very nice features like differential or incremental backups. The OpenEMR user does not need the whistles and bells because system image creation and recovery can take place independent of the application during and after the 30 day trial period with the Windows PE Rescue Disk.

It is safe to obtain the download from CNET. The package is 121 MB containing Macrium Reflect, the .iso for the Windows PE Rescue Disk and the software to burn the .iso to a CD or a flash drive.

There is no Linux version of Macrium Reflect, therefore it is a prerequisite to install it on a Windows partition and in a device with an architecture like that of the device to be deployed. A 32 bit Windows PE Rescue Disk will not work on a 64 bit computer. In fact, in such a mismatch, the Rescue Disk will self-eject and the application will come to a screeching halt.

The required media are CD or flash drive and an external hard drive. It would be good if the external hard drive has double the capacity of the internal hard drive.

Windows PE Rescue Disk

Microsoft had developed the Windows Pre-installation Environment to install the Windows operating system to new devices. Paramount Software UK, Ltd., adapted it for backup and recovery in event that it is not possible to boot into the operating system. Because the Windows PE Rescue Disk runs externally to the operating system, the process is more streamlined and faster.

Creation of Rescue Disk

1. Open the software within the 30 day trial period and be certain that you are in the "Disk Image" tab in the upper left part of the screen. Open "Other Tasks" in the left side bar and click "Create bootable Rescue media". Rq1.png


2. In "Rescue Media Wizard" click "Next".

Rescue2.png


3. In "Rescue Media Drivers" click "Next".

Rescue3.png


4. In "Prepare Windows PE Image" click "Next".

Rescue4.png


5. At "Burn Rescue Media", insert a CD; then click "Finish". With the completion of burning, the Rescue Disk is ready for use.

Rescue5.png


A flash drive can be used in place of a CD.
Rq6.PNG


Backup

Become familiar with the process of booting from media. Commonly the boot order can be accessed by tapping the F9 or F12 key just after the appearance of the splash screen.

The majority of the screenshots have been taken from the application within the operating system because the images are clearer with a better layout. The remaining images are from an actual run of the Rescue Disk because they are unique and cannot be represented from within Macrium Reflect.

It takes about 29 minutes for 33 GB of data. This is remarkable given the fact that the device running the program has only 516 MB of RAM. Backing up 1.5 GB of OpenEMR data with xCopy runs about 45 minutes the first time. Windows PE replicates the Master Boot Record without being told. It copies the GRUB Bootloader without breaking a sweat.

1. Insert the Windows PE Rescue Disk with the external hard drive and restart device.

2. Choose the CD option and press any key on the keyboard.

Bu1.png


3. Wait for the files to load. 2bu2.png


4. This is the next screen. 1bu3.png


5. Check that you are in the "Disk Image" tab and click "Image this disk...".

1bu4.png


6. Browse for a Destination drive; then uncheck the box of Image ID, because the ID serves poorly to distinguish between different backup files. Entering a file name is a better memory aide.

Bu5.png


7. Choose the Destination drive and click "O.K.".

Bu6.png


8. After naming the backup file, click "Next".

Bu7.png


9. The "Finish" button is a little misleading. Clicking it will start the backup.

Bu8.png


10. When the backup has completed, click "O.K.".

Bu9.png


11. To exit backup click "Close".

1bu12.png


12. Double clicking the red shutdown button in the lower left will begin the exit from the program.

Bu11.png


13. Click "Yes" to reboot. Eject the Rescue Disk. Remember not to press any key, otherwise normal booting will not proceed properly.

Bu12.png


14. Encrypting the external hard drive would be advisable.


Recovery

Restoring 33 GB of data will take about 20 minutes.

1. Repeat Steps 1 through 4 from the previous section.

2. Be certain that you are in the "Restore" tab and click "Browse for an image file...". 1rs1.png


3. Select an image and click "Open".

Rs2.png


4. Click "Restore Image".

2rs3.png


5. Click "Copy selected partitions".

Rs4.png


6. If the selection had been successful, the partitions will be outlined in green. Click "Next".

Rs5.png


7. Click "Finish" to begin the recovery.

Rs6.png


8. There will be a dialog warning about the hard drive being overwritten. It's perfectly fine to continue.

Rs7.png


9. Repeat Steps 11 through 13 to exit Restore and to reboot.


Punched smiley.gif It's free. It's relatively easy. No more excuses.Eureka smiley.gif
Jumping dragon.gif