data provider: add automatic backups

Automatic backup are enabled by default, a new backup will be saved
each day at midnight.

The backups_path setting was moved from the httpd section to the
data_provider one, please adjust your configuration file and or your
env vars

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-03-13 13:45:07 +01:00
parent 48ed3dab1f
commit 5582f5c811
10 changed files with 222 additions and 126 deletions

View File

@@ -203,7 +203,13 @@
"update_mode": 0,
"create_default_admin": false,
"naming_rules": 0,
"is_shared": 0
"is_shared": 0,
"backups_path": "backups",
"auto_backup": {
"enabled": true,
"hour": "0",
"day_of_week": "*"
}
},
"httpd": {
"bindings": [
@@ -248,7 +254,6 @@
"templates_path": "templates",
"static_files_path": "static",
"openapi_path": "openapi",
"backups_path": "backups",
"web_root": "",
"certificate_file": "",
"certificate_key_file": "",