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
admin:backup_and_restore [2022/01/17 23:10] – [Restoring your data] Mark Gloveradmin:backup_and_restore [2022/05/30 02:03] (current) – [Restoring your data] Mark Glover
Line 78: Line 78:
  
 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...** +  - Quit mSupply if it is running. 
-  - Locate your backup file in the //**Open**// dialog that appears. Your backup file has file extension ''.4BK'', eg. ''CMS.4BK'' Hit **OK**. +  - 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 }} 
-  - 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. +  - Choose the 4th radio button **Restore a backup file**. 
-  After the file is restored, the file location is then displayed using your computer's default file manager.  You can close this window+  - 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**. 
-  - Now go back into mSupply and click menu **File > Open data file...** +  - 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}} 
-  - Locate the newly restored data file in the //**Open**// dialog that appears.  Your data file has file extension ''.4dd''eg. ''CMS.4dd''+  - Once the restore has completedmSupply will Quit
-  - Select the data file and hit the **OK** button. +  - Restart mSupply 
-  - 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. +  - You may be prompted for a log file.  In that case: 
-  - 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. +    - 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. 
-  - 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 (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. 
-  - You will then be asked to **Please create and specify the location of of your log file in the next window.**  You may find that the parent location of the default location is where the log file is already created.  You can overwrite it.+    - 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: 2022/05/30 02:03
  • by Mark Glover