mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-25 04:46:58 +08:00
Remove empty strings from default config
This commit is contained in:
parent
a14f4caeb3
commit
58a50f0816
1 changed files with 18 additions and 18 deletions
|
|
@ -7,7 +7,7 @@ __intname__ = "npbackup.configuration"
|
||||||
__author__ = "Orsiris de Jong"
|
__author__ = "Orsiris de Jong"
|
||||||
__copyright__ = "Copyright (C) 2022-2024 NetInvent"
|
__copyright__ = "Copyright (C) 2022-2024 NetInvent"
|
||||||
__license__ = "GPL-3.0-only"
|
__license__ = "GPL-3.0-only"
|
||||||
__build__ = "2024042101"
|
__build__ = "2024042301"
|
||||||
__version__ = "npbackup 3.0.0+"
|
__version__ = "npbackup 3.0.0+"
|
||||||
|
|
||||||
MIN_CONF_VERSION = 3.0
|
MIN_CONF_VERSION = 3.0
|
||||||
|
|
@ -124,7 +124,7 @@ empty_config_dict = {
|
||||||
"conf_version": MAX_CONF_VERSION,
|
"conf_version": MAX_CONF_VERSION,
|
||||||
"repos": {
|
"repos": {
|
||||||
"default": {
|
"default": {
|
||||||
"repo_uri": "",
|
"repo_uri": None,
|
||||||
"permissions": "full",
|
"permissions": "full",
|
||||||
"manager_password": None,
|
"manager_password": None,
|
||||||
"repo_group": "default_group",
|
"repo_group": "default_group",
|
||||||
|
|
@ -174,27 +174,27 @@ empty_config_dict = {
|
||||||
"post_exec_execute_even_on_backup_error": True,
|
"post_exec_execute_even_on_backup_error": True,
|
||||||
},
|
},
|
||||||
"repo_opts": {
|
"repo_opts": {
|
||||||
"repo_password": "",
|
"repo_password": None,
|
||||||
"repo_password_command": "",
|
"repo_password_command": None,
|
||||||
# Minimum time between two backups, in minutes
|
# Minimum time between two backups, in minutes
|
||||||
# Set to zero in order to disable time checks
|
# Set to zero in order to disable time checks
|
||||||
"minimum_backup_age": 1440,
|
"minimum_backup_age": 1440,
|
||||||
"upload_speed": "100 Mib", # Mib(its) or MiB(ytes), use 0 for unlimited upload speed
|
"upload_speed": "100 Mib", # Mib(its) or MiB(ytes), use 0 for unlimited upload speed
|
||||||
"download_speed": "0", # in KiB, use 0 for unlimited download speed
|
"download_speed": "0 Mib", # in KiB, use 0 for unlimited download speed
|
||||||
"backend_connections": 0, # Fine tune simultaneous connections to backend, use 0 for standard configuration
|
"backend_connections": 0, # Fine tune simultaneous connections to backend, use 0 for standard configuration
|
||||||
"retention_strategy": {
|
"retention_policy": {
|
||||||
"last": 0,
|
"last": 3,
|
||||||
"hourly": 72,
|
"hourly": 72,
|
||||||
"daily": 30,
|
"daily": 30,
|
||||||
"weekly": 4,
|
"weekly": 4,
|
||||||
"monthly": 12,
|
"monthly": 12,
|
||||||
"yearly": 3,
|
"yearly": 3,
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"within": True,
|
"keep_within": True,
|
||||||
"ntp_time_server": None, # TODO
|
"ntp_time_server": None, # TODO
|
||||||
},
|
},
|
||||||
"prune_max_unused": None,
|
# "prune_max_unused": None, # TODO
|
||||||
"prune_max_repack_size": None,
|
# "prune_max_repack_size": None, # TODO
|
||||||
},
|
},
|
||||||
"prometheus": {
|
"prometheus": {
|
||||||
"backup_job": "${MACHINE_ID}",
|
"backup_job": "${MACHINE_ID}",
|
||||||
|
|
@ -205,22 +205,22 @@ empty_config_dict = {
|
||||||
},
|
},
|
||||||
"identity": {
|
"identity": {
|
||||||
"machine_id": "${HOSTNAME}__${RANDOM}[4]",
|
"machine_id": "${HOSTNAME}__${RANDOM}[4]",
|
||||||
"machine_group": "",
|
"machine_group": None,
|
||||||
},
|
},
|
||||||
"global_prometheus": {
|
"global_prometheus": {
|
||||||
"metrics": False,
|
"metrics": False,
|
||||||
"instance": "${MACHINE_ID}",
|
"instance": "${MACHINE_ID}",
|
||||||
"destination": "",
|
"destination": None,
|
||||||
"http_username": "",
|
"http_username": None,
|
||||||
"http_password": "",
|
"http_password": None,
|
||||||
"additional_labels": "",
|
"additional_labels": None,
|
||||||
},
|
},
|
||||||
"global_options": {
|
"global_options": {
|
||||||
"auto_upgrade": True,
|
"auto_upgrade": True,
|
||||||
"auto_upgrade_interval": 10,
|
"auto_upgrade_interval": 10,
|
||||||
"auto_upgrade_server_url": "",
|
"auto_upgrade_server_url": None,
|
||||||
"auto_upgrade_server_username": "",
|
"auto_upgrade_server_username": None,
|
||||||
"auto_upgrade_server_password": "",
|
"auto_upgrade_server_password": None,
|
||||||
"auto_upgrade_host_identity": "${MACHINE_ID}",
|
"auto_upgrade_host_identity": "${MACHINE_ID}",
|
||||||
"auto_upgrade_group": "${MACHINE_GROUP}",
|
"auto_upgrade_group": "${MACHINE_GROUP}",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue