Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
admin:backup_and_restore [2020/09/15 07:22] Mark Gloveradmin:backup_and_restore [2021/10/08 11:12] Gary Willetts
Line 1: Line 1:
 {{indexmenu_n>60}} {{indexmenu_n>60}}
-====== 23.06. Backup ====== +====== 25.06. Backup ======
 If your data is important, then data backups need to happen, because things can go wrong (power failures, disk failures, ransomware, etc.) If your data is important, then data backups need to happen, because things can go wrong (power failures, disk failures, ransomware, etc.)
  
Line 23: Line 22:
  
 Choose **File > Backup...** to run a manual backup of your data. The backup will be carried out according to the configuration of the [[preferences:general#backup_tab|Preferences > Backup tab]]. Choose **File > Backup...** to run a manual backup of your data. The backup will be carried out according to the configuration of the [[preferences:general#backup_tab|Preferences > Backup tab]].
- 
- 
- 
- 
  
 ===== Backup: best practice ===== ===== Backup: best practice =====
Line 50: Line 45:
 This is still possible if your machine only has one disk drive and you can not configure a RAID array.  This could be a volume attached to a USB port (e.g. a thumb drive) or a location on the network, //provided that it is always available//. This is still possible if your machine only has one disk drive and you can not configure a RAID array.  This could be a volume attached to a USB port (e.g. a thumb drive) or a location on the network, //provided that it is always available//.
  
 +==== Configure Primary backups ====
  
 +We recommend that you configure the Primary backup as recommended in our user's guide section on the [[preferences:general#backup_tab|Preferences > Backup tab]].
  
- +==== Configure a secondary backup ====
-==== Configure a secondary backup location in mSupply ====+
   * Configure a secondary backup to a destination on the same machine, or elsewhere on the network that will be synced off-site (e.g. Dropbox, OneDrive, Google Drive, etc.) - refer [[preferences:general#backup_2_tab|Preferences > Backup 2 tab]].   * Configure a secondary backup to a destination on the same machine, or elsewhere on the network that will be synced off-site (e.g. Dropbox, OneDrive, Google Drive, etc.) - refer [[preferences:general#backup_2_tab|Preferences > Backup 2 tab]].
  
Line 65: Line 61:
  
  
-===== Setting up backup for single user mSupply ===== 
- 
-If you are using a synchronisation system with mSupply it's very important that you don't lose any data on the remote sites, which are possibly even more vulnerable to power or component failures.  
  
 ==== Use a standard place to store backups ==== ==== Use a standard place to store backups ====
Line 75: Line 68:
   * Log file in ''C:/mSupply_data/''   * Log file in ''C:/mSupply_data/''
  
-==== Primary backups ====+===== Backup for mSupply single user sites =====
  
-We recommend that you configure mSupply to  +If you have a synchronisation system with mSupply it's very important that the sync satellite sites have operating backups.  By design, mSupply sync satellite sites can operate indefinitely without syncing to the Central server.  There are numerous cases of Sync satellite sites operating for months without syncing, though this is not recommended!  In such cases, a failure on the sync satellite site could result in months of lost data unless backups are operating on the such sync satellite sites.  These sites are normally even more vulnerable to failure than 'Central' servers ....
-  * Use the single disk as the primary backup location. +
-  * The Primary backup should be set to be carried out nightly. +
-  * Use a log (journal) file. A log file records each database action as it happens. In the event of power failure or other adverse event, all changes can be recovered from the log file. +
- +
-You can configure primary backups to run on a schedule that you set.  To do this go to Admin > Preferences and select Backup from the left panel.  You must have an existing backup to use these features (see [[admin:backup_and_restore#running_a_backup]]). +
- +
-{{ :admin:backup1.jpg |}} +
- +
-Select Automatic Backup and schedule by hour(s), day(s) or week(s) as indicated. +
- +
-{{ :admin:backup2.jpg |}} +
- +
-Choose your backup folder and select Use log file. {{:admin:backup5.jpg}}   +
- +
-You will be prompted to specify the location of your log file. +
- +
-{{ :admin:backup3.jpg |}} +
- +
-Press Continue +
- +
-{{ :admin:backup4.jpg?700 |}} +
- +
-When all settings are correct, press OK to save.+
  
 =====  Restoring your data ===== =====  Restoring your data =====
 +<WRAP important center round 90%>
 +For data security purposes, the //New data file//, //Restore// and //Open new datafile// functions are disabled if you are on a satellite site in a synchronising system.
 +</WRAP>
  
 An mSupply database can be created from a backup: An mSupply database can be created from a backup:
- 
   - Log in to msupply with an old data file or by creating a new data file and click menu **File > Restore...**   - Log in to msupply with an old data file or by creating a new data file and click menu **File > Restore...**
   - Locate your backup file in the //**Open**// dialog that appears. Your backup file has file extension ''.4BK'', eg. ''CMS.4BK'' Hit **OK**.   - Locate your backup file in the //**Open**// dialog that appears. Your backup file has file extension ''.4BK'', eg. ''CMS.4BK'' Hit **OK**.
  • Last modified: 2022/05/30 02:03
  • by Mark Glover