Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
admin:backup_and_restore [2020/09/15 06:59] – [23.06. Backup] Mark Glover | admin:backup_and_restore [2022/01/17 23:10] – [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 22: | Line 21: | ||
==== Running a backup manually ==== | ==== Running a backup manually ==== | ||
- | Choose **File > Backup...** to run a manual backup of your data. The backup will be carried out according to the configuration of the [[admin:backup_and_restore#primary_backups|primary backups]]. | + | 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 32: | Line 27: | ||
==== Disk configuration ==== | ==== Disk configuration ==== | ||
+ | |||
+ | If your machine has the capability (e.g. it is a server with multiple storage volumes), then there is additional data security in configuring a [[https:// | ||
=== Use RAID 1 === | === Use RAID 1 === | ||
* [[https:// | * [[https:// | ||
Line 46: | Line 43: | ||
This disk is not part of the RAID | This disk is not part of the RAID | ||
+ | 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 ==== |
- | * Configured | + | * Configure |
==== Configure off-site backup ==== | ==== Configure off-site backup ==== | ||
Line 60: | Line 60: | ||
We have the technology to provide mirrored servers when very high availability is required. Contact us if interested. A charge will apply for implementation | We have the technology to provide mirrored servers when very high availability is required. Contact us if interested. A charge will apply for implementation | ||
- | ===== Restoring your data ===== | ||
- | Choosing this item allows you to choose a backup data file, uncompress it and start using it as your main data file. | ||
- | |||
- | * 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 // | ||
- | * 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. | ||
- | * After the file is restored, the file location is then displayed using your computer' | ||
- | * Now go back into mSupply and click menu **File > Open data file...** | ||
- | * Locate the newly restored data file in the // | ||
- | * Select the data file and hit the **OK** button. | ||
- | * You may be prompted for a log file. Click on the **Create** button. | ||
- | * You will be prompted to do a backup. | ||
- | * mSupply should open your restored data file and you should be presented with the log in screen to the new data file. | ||
- | |||
- | In client/ | ||
- | |||
- | Be very careful about restoring. We suggest you consult Sustainable Solutions before attempting a restore. | ||
- | |||
- | ===== Setting up backup and a log file 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 site. To ensure that power failures (or a dead battery on a laptop) don't cause mSupply to quit unexpectedly and therefore to lose data, you should configure mSupply to use a log file. | ||
==== Use a standard place to store backups ==== | ==== Use a standard place to store backups ==== | ||
Line 86: | Line 66: | ||
* mSupply data in '' | * mSupply data in '' | ||
* Backups in '' | * Backups in '' | ||
- | * 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. In the event of a power failure | + | |
- | 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. | + | ===== 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> | ||
- | {{ :admin: | + | 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...** | ||
+ | - Locate your backup file in the // | ||
+ | - 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. | ||
+ | - After the file is restored, the file location is then displayed using your computer' | ||
+ | - Now go back into mSupply and click menu **File > Open data file...** | ||
+ | - Locate the newly restored data file in the // | ||
+ | - Select the data file and hit the **OK** button. | ||
+ | - You may be prompted for a log file. Click on the **Create** button. | ||
+ | - 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. 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 then be asked to **Please create and specify the location of of your log file in the next window.** | ||
+ | - mSupply should open your restored data file and you should be presented with the log in screen to the new data file. | ||
- | Select Automatic Backup and schedule by hour(s), day(s) or week(s) as indicated. | + | In client/ |
- | + | ||
- | {{ : | + | |
- | + | ||
- | Choose your backup folder and select Use log file. {{: | + | |
- | + | ||
- | You will be prompted to specify the location of your log file. | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | Press Continue | + | |
- | {{ : | + | Be very careful about restoring. We suggest you consult Sustainable Solutions before attempting a restore, particularly in a synced system. |
- | When all settings are correct, press OK to save. | ||
\\ | \\ |