admin:backup_and_restore

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
admin:backup_and_restore [2020/09/15 07:45] Mark Gloveradmin:backup_and_restore [2022/05/30 02:03] (current) – [Restoring your data] Mark Glover
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 74: Line 73:
  
 =====  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:
- +  - Quit mSupply if it is running. 
-  - Log in to msupply with an old data file or by creating a new data file and click menu **File > Restore...** +  - Start mSupply and then <wrap em>immediately</wrap> hold down the **Alt** key You will now be shown the following dialogue box with a number of radio buttons with the different options available:{{ tutorial:/new_file_option.jpg?450 }} 
-  - Locate your backup file in the //**Open**// dialog that appears. Your backup file has file extension ''.4BK'', eg. ''CMS.4BK'' Hit **OK**. +  - Choose the 4th radio button **Restore a backup file**. 
-  - Clicking on the small red down arrow next to the data file name will show the current destination location to where the data file will be restored.  You are being prompted for a folder where the data file will be restored to.  Change the destination location of the data file by clicking on the **...** button.  Once you are happy with the destination location, hit the **Restore** button. +  - Another window will open where you can choose the backup file to restore.  Locate your backup file in the //**Open**// dialog that appears. Your backup file has file extension ''.4BK'', eg. ''CMS.4BK'' Hit **OK**. 
-  After the file is restored, the file location is then displayed using your computer's default file manager.  You can close this window+  - You will be prompted for where to create the data file.  Change the destination location of the data file by clicking on the **...** button.  Once you are happy with the destination location, hit the **Restore** button.\\ {{:admin:pasted:20220530-014805.png}} 
-  - Now go back into mSupply and click menu **File > Open data file...** +  - Once the restore has completedmSupply will Quit
-  - Locate the newly restored data file in the //**Open**// dialog that appears.  Your data file has file extension ''.4dd''eg. ''CMS.4dd''+  - Restart mSupply 
-  - Select the data file and hit the **OK** button. +  - You may be prompted for a log file.  In that case: 
-  - You may be prompted for a log file.  Click on the **Create** button.  Select the suggested location, which is the same as your new data file location, and click on the **Save** button. +    - Click on the **Create** button.  Select the suggested location, which can be the same as your new data file location.  You may find that the parent location of the default location is where the log file is already created.  You can overwrite it.  Once you have specified a location, click on the **Save** button. 
-  - You will be prompted to do a backup.  It is not necessary to do this at this stage, but the log file will not be created until you create the first backup, so you may as well accept the offer.  It can take a while to open this new data file, particularly if it is a large data file and the index file is not included with the backup (hours).+    - You will be advised that **The log file will be activated after the next backup of the data file.  Do you want to start the backup automatically?**.  If you click **OK** here, then a backup will be created //now// This can take many minutes if it is a large data file.  It is not necessary to create the backup at this stage, but the log file will not be created until you create the first backup
 +    - After clicking **OK** or **Cancel**, the data file will open.  This will take time (hours) if it is a large data file and the index file is not included with the backup.
   - mSupply should open your restored data file and you should be presented with the log in screen to the new data file.   - mSupply should open your restored data file and you should be presented with the log in screen to the new data file.
  
  • Last modified: 2020/09/15 07:45
  • by Mark Glover