Backups [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:dpi:dpi_components:dpiui:user_guide:admin_section:backup_settings [2022/09/06 14:04] – [Enable FS backup] kparamonoven:dpi:dpi_components:dpiui:user_guide:admin_section:backup_settings [2024/09/26 15:29] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Backups ======+====== Backups ======
  
 {{indexmenu_n>5}} {{indexmenu_n>5}}
Line 7: Line 7:
 Move to the DB and FS settings section, open the Administrator menu item, section **«Backup settings»**. Move to the DB and FS settings section, open the Administrator menu item, section **«Backup settings»**.
  
-{{ :en:dpi:dpi_components:dpiui:user_guide:admin_section:ckat_dpiui2_conf_backups_en.png?880 |}}+{{ :en:dpi:dpi_components:dpiui:user_guide:admin_section:ckat_dpiui2_conf_backups_new_en.png?880 |}}
  
 ====== Configuration ====== ====== Configuration ======
Line 15: Line 15:
 To enable DB backup, select "**Enabled**". To enable DB backup, select "**Enabled**".
  
-{{ :en:dpi:dpi_components:dpiui:user_guide:admin_section:ckat_dpiui2_conf_backups_db_enabled_en.png?880 |}}+{{ :en:dpi:dpi_components:dpiui:user_guide:admin_section:ckat_dpiui2_conf_backups_db_enabled_new_en.png?880 |}}
  
 __//Specify the following settings//__ __//Specify the following settings//__
  * **BACKUP_DB_ENABLED** - enable DB backup. (Default value is Disabled)  * **BACKUP_DB_ENABLED** - enable DB backup. (Default value is Disabled)
  
- * **BACKUP_DB_INTERVAL_HOURS** - backup DB time interval, minutes. (Default value is 1440)+ * **BACKUP_DB_INTERVAL_MINUTES** - backup DB time interval, minutes. (Default value is 1440)
  
  * **BACKUP_DB_PATH** - backup DB save path. (Default path is /var/dpiui2_backup/db)  * **BACKUP_DB_PATH** - backup DB save path. (Default path is /var/dpiui2_backup/db)
  
- * **BACKUP_DB_DELETE_OLD_INTERVAL** - delete old DB backups interval, minutes. (Default value is 0)+ * **BACKUP_DB_DELETE_OLD_INTERVAL_MINUTES** - delete old DB backups interval, minutes. (Default value is 0)
  
 <note important>When set to "**0**", old backups will not be deleted.</note> <note important>When set to "**0**", old backups will not be deleted.</note>
Line 33: Line 33:
 To enable FS backup, select "**Enabled**". To enable FS backup, select "**Enabled**".
  
-{{ :en:dpi:dpi_components:dpiui:user_guide:admin_section:ckat_dpiui2_conf_backups_fs_enabled_en.png?880 |}} +{{ :en:dpi:dpi_components:dpiui:user_guide:admin_section:ckat_dpiui2_conf_backups_fs_enabled_new_en.png?880 |}}
 __//Specify the following settings//__ __//Specify the following settings//__
  * **BACKUP_FS_ENABLED** - enable FS backup. (Default value is Disabled)  * **BACKUP_FS_ENABLED** - enable FS backup. (Default value is Disabled)
  
- * **BACKUP_FS_INTERVAL_HOURS** - backup FS time interval, minutes. (Default value is 1440)+ * **BACKUP_FS_INTERVAL_MINUTES** - backup FS time interval, minutes. (Default value is 1440)
  
  * **BACKUP_FS_PATH** - backup FS save path. (Default path is /var/dpiui2_backup/fs)  * **BACKUP_FS_PATH** - backup FS save path. (Default path is /var/dpiui2_backup/fs)
  
- * **BACKUP_FS_DELETE_OLD_INTERVAL** - delete old FS backups interval, minutes. (Default value is 0)+ * **BACKUP_FS_DELETE_OLD_INTERVAL_MINUTES** - delete old FS backups interval, minutes. (Default value is 0)
  
 <note important>When set to "**0**", old backups will not be deleted.</note> <note important>When set to "**0**", old backups will not be deleted.</note>
Line 68: Line 67:
 To save the edited parameters, click the **"Save"** button. To save the edited parameters, click the **"Save"** button.
  
-{{ :en:dpi:dpi_components:dpiui:user_guide:admin_section:gui_man:config:gui_configuration_dackup_settings_en_4.png?880 |}}+{{ :en:dpi:dpi_components:dpiui:user_guide:admin_section:ckat_dpiui2_conf_backups_save_new_en.png?880 |}} 
  
 ====== Data recovery ====== ====== Data recovery ======
Line 77: Line 77:
 To restore the database, upload the database backup file to the dpiui2 server and run the following command in the terminal: To restore the database, upload the database backup file to the dpiui2 server and run the following command in the terminal:
  
-<code>gunzip < dpiui2_db_backup.X.sql.gz | mysql -u root -p dpiui2</code>+<code>sh /var/www/html/dpiui2/backend/app_bash/vas_codebase/restore_backup_db.sh dpiui2 dpiui2_db_backup.X.tar.gz</code>
 ===== Restoring FS from backup ===== ===== Restoring FS from backup =====