Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
admin:backup_and_restore [2020/09/15 07:24] – [Setting up backup for single user mSupply] Mark Glover | admin:backup_and_restore [2022/05/30 02:03] (current) – [Restoring your data] Mark Glover | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{indexmenu_n> | {{indexmenu_n> | ||
- | ====== | + | ====== |
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: | Choose **File > Backup...** to run a manual backup of your data. The backup will be carried out according to the configuration of the [[preferences: | ||
- | |||
- | |||
- | |||
- | |||
===== 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 is still possible if your machine only has one disk drive and you can not configure a RAID array. | ||
+ | ==== Configure Primary backups ==== | ||
+ | We recommend that you configure the Primary backup as recommended in our user's guide section on the [[preferences: | ||
- | + | ==== Configure a secondary backup ==== | |
- | ==== Configure a secondary backup | + | |
* 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: | * 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: | ||
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. | ||
- | |||
- | Inclusion of the log file in the backup is not possible through the [[preferences: | ||
==== Use a standard place to store backups ==== | ==== Use a standard place to store backups ==== | ||
Line 77: | Line 68: | ||
* Log file in '' | * Log file in '' | ||
- | ==== Primary backups | + | ===== Backup for mSupply single user sites ===== |
- | We recommend that you configure | + | If you have a synchronisation system with mSupply |
- | * 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. | + | |
- | + | ||
- | You can configure primary | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | Select Automatic Backup and schedule by hour(s), day(s) or week(s) as indicated. | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | Choose your backup folder and select Use log file. {{: | + | |
- | + | ||
- | You will be prompted to specify the location of your log file. | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | Press Continue | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | 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. | ||
+ | </ | ||
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 |
- | - Locate your backup file in the // | + | - Choose the 4th radio button |
- | - 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. | + | - Another window will open where you can choose the backup file to restore. |
- | | + | - You will be prompted for where to create |
- | - Now go back into mSupply and click menu **File > Open data file...** | + | - Once the restore |
- | - Locate | + | - Restart mSupply |
- | - Select the data file and hit the **OK** button. | + | - You may be prompted for a log file. |
- | - You may be prompted for a log file. Click on the **Create** button. | + | - Click on the **Create** button. |
- | - You will be prompted | + | - 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? |
+ | - After clicking **OK** or **Cancel**, the data file will open. | ||
- 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. | ||