Backup and Restore: Difference between revisions

From ARIS
Jump to navigation Jump to search
David (talk | contribs)
David (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:ARIS:Backup and Restore]]
[[Category:ARIS:Backup and Restore]]
'''UNDER CONSTRUCTION'''


===Backup Process for Application===
===Backup Process for Application===

Revision as of 20:37, 4 July 2023


Backup Process for Application[edit]

The backup process for ARIS application involves regularly creating backups of the application's database to ensure data safety and the ability to restore the system in case of any issues. Here is a step-by-step guide on how the the backup is perfomred and how to customize it:

1.Access technical administration page: Log in to the application as an administrator and go to the Technical Administration section, then find the parameters tab. This section provides access to the backup-related parameters and settings.
2. Set Backup Frequency: In the parameters tab, locate the backup_frequency parameter. This parameter determines how often the backups will be created. Modify this parameter according to your requirements. For example, if you set it to "6," a backup will be created every six hours. By default it will be set as 23 so it will create a backup daily.
3. Set Backup History: Locate the backup_history parameter in the same tab. This parameter defines the number of backups to retain. Modify this parameter to specify how many backups you want to keep. For instance, if you set it to "5," the system will retain the most recent five backups. By default the parameter will be set in 3, so the system will only preserve the 3 most recent backups.
Parameters of backup settings inside the parameters tab
4. Find the Backup Folder: The backup files will be stored in the ARIS/Backend/Databes/Backups folder. Here you will find all the backups files with the creation date as their names.
Backup folder with three backup files

The backup process will be done automatic, you just need to modify, if you see it necessary, the parameters commented above. The system will generate backups every time the backup_frecuency parameter says and many as the backup_history parameter says.

Restoring the System[edit]

To restore the system you need to use one of the backup files, as the follow steps show:

1. Locate the Backup folder: You will find the backup folder in C:/Users/Public/ARIS/Backend/Database/Backups (by default) as the step 4 of the section above show.
2. Delete Existing Database: Ensure that the "sql_app.db" file in the Databes folder is either deleted or moved out of the folder. This step ensures that the restored backup will replace the existing database.
sql_app.db file at the end of the folder
3. Locate the Desired Backup: In the Backup folder (ARIS/Backend/Database/Backups), locate the backup file you want to restore. Choose the most recent backup or the one that suits your needs.
4. Copy Backup File: Copy the selected backup file.
5. Paste and Rename: Paste the copied backup file into the Database folder. Rename the backup file to "sql_app.db". This step ensures that the restored backup file becomes the active database file for the application.

By following these steps, you can perform regular backups of your application's database and restore the system using any of the previously created backup files. It is important to review and update the backup_frequency and backup_history parameters in the Technical Administration section to align with your data retention and backup requirements.