Difference between revisions of "Backup and Restore"

From IMSMA Wiki
Jump to: navigation, search
Line 1: Line 1:
 
__FORCETOC__
 
__FORCETOC__
 
{{TOC right}}
 
{{TOC right}}
*[[Standalone]]
 
*[[Network Environment]]
 
*[[Externally Connected Tools]]
 
*[[Attachments]]
 
 
 
==Backing Up And Restoring Data==
 
==Backing Up And Restoring Data==
 +
The most important aspect of maintaining a properly functioning IMSMANG system is backing up and restoring data.
 
Regular data backups are essential for maintaining the integrity of the system in case of sytem failure, software errors or accidental data deletion.  Not only should information managers mandate that all IMSMA<sup>NG</sup> data is regularly backed up, but more importantly a multitired backup strategy should be used to eliminate data loss.  Consider the following options below when developing a backup strategy for IMSMA<sup>NG</sup>.   
 
Regular data backups are essential for maintaining the integrity of the system in case of sytem failure, software errors or accidental data deletion.  Not only should information managers mandate that all IMSMA<sup>NG</sup> data is regularly backed up, but more importantly a multitired backup strategy should be used to eliminate data loss.  Consider the following options below when developing a backup strategy for IMSMA<sup>NG</sup>.   
  
Line 15: Line 11:
 
*IMSMANG-specific backups
 
*IMSMANG-specific backups
  
Finally, any data backup strategy should include occasioanl tests to ensure that all of the backups are functioning properly.
+
Moreover, a backup is only as good as the ability to restore it. As such, any data backup strategy should include plans to test existing backups to ensure that the backups are usable. If it becomes necessary to restore data, regular testing of backups helps ensure that it will be possible to do so.
  
 
===Backing Up the IMSMA<sup>NG</sup> Database===
 
===Backing Up the IMSMA<sup>NG</sup> Database===
The IMSMA<sup>NG</sup> Datebase holds all of the actie data in IMSMA<sup>NG</sup> ranging from published reports to general mine action information. IMSMA<sup>NG</sup> Backup is responsible for storing all of this data under the MySQL database.  The MySQL database dump command impliments a complete backup of all the data in the database. The resulting dump.sql file includes the necessary commands to recreate the database with all the existing data.  The existing file is stored in a time-stamped directory for easy access.  
+
IMSMANG contains several stores of information that can be backed up. By far, the most critical store is the IMSMANG database itself because it contains all of the active data in IMSMANG including published reports, form templates and geographic data in addition to the typical mine action information. IMSMANG’s Backup capability backs up the IMSMANG database by executing a MySQL database dump command that creates a complete backup of all of the data in the database including any additional tables, views and other customisations. The resulting dump.sql file, which is stored in a time-stamped directory for easy identification, includes the necessary commands to recreate the database with all of the existing data.  
 
    
 
    
 
[[File:BackingUp Tip1CORRECT.png|border|caption]]
 
[[File:BackingUp Tip1CORRECT.png|border|caption]]
  
Information Managers can create automatic dailiy or weekly backups using MySQL Administration tools. These backups also work simultaneously with IMSMA <sup>NG</sup> Backup; however any backup made outside of IMSMA <sup>NG</sup> needs to be manually restored.
+
Information managers can augment the IMSMANG Backup capability with other scheduled backups using MySQL Administration tools, for example, and build daily or weekly routines that back up the database automatically. These backups work similarly to IMSMANG Backup; however, any backup made outside of IMSMANG will have to be restored manually. Even so, regularly scheduled backups are an excellent component of a backup strategy.
  
 
[[File:BackingUp Tip2.png|border|caption]]
 
[[File:BackingUp Tip2.png|border|caption]]
  
 
===Attachments===
 
===Attachments===
Attachmes are stored seprately from the IMSMA<sup>NG</sup> database on the server file. However because of their size, it may not be necessary to back up the attachments each time. For this reason, IMSMA<sup>NG</sup> Backup provides the option of excluding attachments when performing a backup.  
+
IMSMANG stores attachments on the server file system separate from the IMSMANG database. Because of the size of some attachments, it may not be beneficial or necessary to back up the attachments each time. IMSMANG Backup provides the option to exclude attachments when performing a backup.
  
Including attachments is still reccomended for complete backups. However, if the file size is too large attachments can be deleted manually. Avoid excluding attachemtns from backups since attachmets cannot be added to the backup file.
+
For regular, complete backups, it is recommended to include attachments. But, if the size of a backup file is a concern, the attachments can be manually deleted. This is a better alternative to creating a backup without attachments since attachments cannot be added back to the backup file. Excluding attachments from a backup is an option that should be used with caution.
  
 
===Backing Up Other IMSMA<sup>NG</sup> Information===
 
===Backing Up Other IMSMA<sup>NG</sup> Information===
Apart from the IMSMA<sup>NG</sup> database and attachment stored on the server, IMSMA<sup>NG</sup> Backup allows members to backup specific elements from the client including:   
+
In addition to the IMSMANG database and attachments stored on the server, IMSMANG Backup allows users to back up certain settings from the IMSMANG client. These include:
 
+
   
*GIS database (.mdb file)
+
* GIS database (.mdb file)
*map files (.mxd, etc)
+
* map files (.mxd, etc)
*field report template files
+
* field report template files
*iReport template files
+
* iReport template files
*translation .properties files
+
* translation .properties files
 
+
 
====GIS Dataabase====
 
====GIS Dataabase====
IMSMA<sup>NG</sup> also stores corrdinate data on each client computer in a geodatabase file (IMSMA.mdb) to allow data to be displayed on a map. Even if the file is missing, IMSMA<sup>NG</sup> automatically builds this file aftre the system launch.  However, it can take several hours.  To avoid this, each IMSMA<sup>NG</sup> backup should include this file to reduce the time it takes to launch IMSMA<sup>NG</sup> after a restore.
+
While IMSMANG stores all coordinate data in the MySQL database that is backed up with the IMSMANG database, IMSMANG also stores coordinate data in a geodatabase file (IMSMA.mdb) on each client computer to allow data to be displayed on the map. This file should be included with each IMSMANG backup to shorten the time it takes to launch IMSMANG after a restore. IMSMANG automatically builds this file during system launch if the file is missing, but it can take several hours to do so.
  
Likewise, since the geodatabase is structured on a per-client basis, the best way to fully update the geodatabase is to launch the client prior to backing it up. Once it is backed up, users can shorten the time required to build the geodatabase by manually transferring it to newly installed clients.  
+
Because the geodatabase is built on a per-client basis, it is also recommended to launch the client to fully update the geodatabase prior to backing it up. After it is backed up, the geodatabase can be transferred manually to other freshly installed clients to shorten the time required to build the geodatabase during system launch.
  
 
====Maps====
 
====Maps====
IMSMA<sup>NG</sup> map fiiles can be loaded on a per-client basis and stored in IMSMA<sup>NG</sup> Backup, providing an easy way to share maps between clients.
+
IMSMA<sup>NG</sup> map files can be loaded on a per-client basis and stored in IMSMA<sup>NG</sup> Backup, providing an easy way to share maps between clients.
  
 
[[File:Map Tip1CORRECT.png|border|caption]]
 
[[File:Map Tip1CORRECT.png|border|caption]]
  
 
====Field Report Templates and iReport Templates====
 
====Field Report Templates and iReport Templates====
IMSMA<sup>NG</sup>users can store copies or drafts of field reports templates and iReports templates to the file system. Select the option on the IMSMA<sup>NG</sup> Backup window to store these files in the backup.
+
IMSMANG provides the capability to store copies or drafts of field report templates and iReport templates to the file system during report design. While the published versions of the templates are backed up as part of the IMSMANG database backup, the files are only included if the option is selected on the IMSMANG Backup window. Storing these files in the backup is recommended as it makes it easier to resume drafting templates and reports.
  
 
====Translations====
 
====Translations====
Translations and localizations of data elements are stored in the IMSMA<sup>NG</sup> database and secured with the database backup. Although the properties files used to translate the IMSMA<sup>NG</sup> interface are stored externally to the database, they can be added to the IMSMA<sup>NG</sup> Backup. Be sure to backup all properties files each time a change or a full backup is made.
+
IMSMANG stores translations of the application in several places. Translations and localisations of data elements are stored in the IMSMANG database and are backed up with the database backup. The .properties files used to translate the IMSMANG interface are stored externally to the database, but they can be added to the IMSMANG Backup as an option. If changes are made to the .properties files, it is recommended to back them up after each change as well as each time a full backup is made.

Revision as of 11:14, 30 November 2012

Backing Up And Restoring Data

The most important aspect of maintaining a properly functioning IMSMANG system is backing up and restoring data. Regular data backups are essential for maintaining the integrity of the system in case of sytem failure, software errors or accidental data deletion. Not only should information managers mandate that all IMSMANG data is regularly backed up, but more importantly a multitired backup strategy should be used to eliminate data loss. Consider the following options below when developing a backup strategy for IMSMANG.

  • disk mirroring
  • operating system backups
  • hard disk backup
  • offsite data storage
  • IMSMANG-specific backups

Moreover, a backup is only as good as the ability to restore it. As such, any data backup strategy should include plans to test existing backups to ensure that the backups are usable. If it becomes necessary to restore data, regular testing of backups helps ensure that it will be possible to do so.

Backing Up the IMSMANG Database

IMSMANG contains several stores of information that can be backed up. By far, the most critical store is the IMSMANG database itself because it contains all of the active data in IMSMANG including published reports, form templates and geographic data in addition to the typical mine action information. IMSMANG’s Backup capability backs up the IMSMANG database by executing a MySQL database dump command that creates a complete backup of all of the data in the database including any additional tables, views and other customisations. The resulting dump.sql file, which is stored in a time-stamped directory for easy identification, includes the necessary commands to recreate the database with all of the existing data.

caption

Information managers can augment the IMSMANG Backup capability with other scheduled backups using MySQL Administration tools, for example, and build daily or weekly routines that back up the database automatically. These backups work similarly to IMSMANG Backup; however, any backup made outside of IMSMANG will have to be restored manually. Even so, regularly scheduled backups are an excellent component of a backup strategy.

caption

Attachments

IMSMANG stores attachments on the server file system separate from the IMSMANG database. Because of the size of some attachments, it may not be beneficial or necessary to back up the attachments each time. IMSMANG Backup provides the option to exclude attachments when performing a backup.

For regular, complete backups, it is recommended to include attachments. But, if the size of a backup file is a concern, the attachments can be manually deleted. This is a better alternative to creating a backup without attachments since attachments cannot be added back to the backup file. Excluding attachments from a backup is an option that should be used with caution.

Backing Up Other IMSMANG Information

In addition to the IMSMANG database and attachments stored on the server, IMSMANG Backup allows users to back up certain settings from the IMSMANG client. These include:

  • GIS database (.mdb file)
  • map files (.mxd, etc)
  • field report template files
  • iReport template files
  • translation .properties files

GIS Dataabase

While IMSMANG stores all coordinate data in the MySQL database that is backed up with the IMSMANG database, IMSMANG also stores coordinate data in a geodatabase file (IMSMA.mdb) on each client computer to allow data to be displayed on the map. This file should be included with each IMSMANG backup to shorten the time it takes to launch IMSMANG after a restore. IMSMANG automatically builds this file during system launch if the file is missing, but it can take several hours to do so.

Because the geodatabase is built on a per-client basis, it is also recommended to launch the client to fully update the geodatabase prior to backing it up. After it is backed up, the geodatabase can be transferred manually to other freshly installed clients to shorten the time required to build the geodatabase during system launch.

Maps

IMSMANG map files can be loaded on a per-client basis and stored in IMSMANG Backup, providing an easy way to share maps between clients.

caption

Field Report Templates and iReport Templates

IMSMANG provides the capability to store copies or drafts of field report templates and iReport templates to the file system during report design. While the published versions of the templates are backed up as part of the IMSMANG database backup, the files are only included if the option is selected on the IMSMANG Backup window. Storing these files in the backup is recommended as it makes it easier to resume drafting templates and reports.

Translations

IMSMANG stores translations of the application in several places. Translations and localisations of data elements are stored in the IMSMANG database and are backed up with the database backup. The .properties files used to translate the IMSMANG interface are stored externally to the database, but they can be added to the IMSMANG Backup as an option. If changes are made to the .properties files, it is recommended to back them up after each change as well as each time a full backup is made.