Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:dpi:dpi_components:dpiui:user_guide:admin_section:backup_settings [2023/08/30 13:57] – elena.krasnobryzh | en: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: | ||
- | ====== | + | ====== |
+ | |||
+ | {{indexmenu_n> | ||
+ | |||
+ | Starting with version 2.25.9, the function of backup DB and FS has appeared. By enabling the function, you can configure the frequency of copying, storage duration, as well as export via SCP to a remote storage. | ||
+ | |||
+ | Move to the DB and FS settings section, open the Administrator menu item, section **«Backup settings»**. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ====== Configuration ====== | ||
+ | |||
+ | ===== Enable DB backup ===== | ||
+ | |||
+ | To enable DB backup, select " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | __//Specify the following settings// | ||
+ | * **BACKUP_DB_ENABLED** - enable DB backup. (Default value is Disabled) | ||
+ | |||
+ | * **BACKUP_DB_INTERVAL_MINUTES** - backup DB time interval, minutes. (Default value is 1440) | ||
+ | |||
+ | * **BACKUP_DB_PATH** - backup DB save path. (Default path is / | ||
+ | |||
+ | * **BACKUP_DB_DELETE_OLD_INTERVAL_MINUTES** - delete old DB backups interval, minutes. (Default value is 0) | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | ===== Enable FS backup ===== | ||
+ | |||
+ | < | ||
+ | To enable FS backup, select " | ||
+ | |||
+ | {{ : | ||
+ | __//Specify the following settings// | ||
+ | * **BACKUP_FS_ENABLED** - enable FS backup. (Default value is Disabled) | ||
+ | |||
+ | * **BACKUP_FS_INTERVAL_MINUTES** - backup FS time interval, minutes. (Default value is 1440) | ||
+ | |||
+ | * **BACKUP_FS_PATH** - backup FS save path. (Default path is / | ||
+ | |||
+ | * **BACKUP_FS_DELETE_OLD_INTERVAL_MINUTES** - delete old FS backups interval, minutes. (Default value is 0) | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | ===== Remote server for storing backups settings ===== | ||
+ | |||
+ | * **BACKUP_SCP_HOST** - remote server host for storing backups.\\ | ||
+ | |||
+ | * **BACKUP_SCP_PORT** - remote server port for storing backups.\\ | ||
+ | |||
+ | * **BACKUP_SCP_USER** - backup storage username.\\ | ||
+ | |||
+ | * **BACKUP_SCP_PASSWORD** - backup storage password.\\ | ||
+ | |||
+ | < | ||
+ | |||
+ | * **BACKUP_SCP_DB_PATH** - backup DB remote path. (Default path is / | ||
+ | <note important> | ||
+ | |||
+ | * **BACKUP_SCP_FS_PATH** - backup FS remote path. (Default path is / | ||
+ | <note important> | ||
+ | |||
+ | ===== Saving сhanges ===== | ||
+ | |||
+ | To save the edited parameters, click the **" | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | ====== Data recovery ====== | ||
+ | |||
+ | To restore data from Backup, make sure that the dpiui2 server is [[en: | ||
+ | ===== Restoring DB from backup ===== | ||
+ | |||
+ | To restore the database, upload the database backup file to the dpiui2 server and run the following command in the terminal: | ||
+ | |||
+ | < | ||
+ | ===== Restoring FS from backup ===== | ||
+ | |||
+ | < | ||
+ | |||
+ | To restore the dpiui2 FS upload the backup file to the dpiui2 server and run the following command: | ||
+ | < | ||
+ | |||
+ | <note important> |