Zabbix settings backup, Readme update, base calls location move

New module for zabbix settings backup based on zabbix-dump

Move the _BORG_CALL and _BORG_PRUNE base calls to functions.check
instead of each module (they are all the same)

Update Readme file

Update default settings and remove KEEP so the original defaults are
used
This commit is contained in:
Clemens Schwaighofer
2021-12-14 10:24:42 +09:00
parent ca8317079e
commit a0d06573ec
9 changed files with 244 additions and 26 deletions

View File

@@ -99,6 +99,14 @@ GIT_USER="";
GITEA_TMP="";
GITEA_BIN="";
GITEA_CONFIG="";
# zabbix module
ZABBIX_DUMP_BIN="";
ZABBIX_CONFIG="";
ZABBIX_DATABASE="";
ZABBIX_UNKNOWN_TABLES="";
OPT_ZABBIX_DUMP="";
OPT_ZABBIX_CONFIG="";
OPT_ZABBIX_UNKNOWN_TABLES="";
# default keep 7 days, 4 weeks, 6 months
# if set 0, ignore
# note that for last/hourly it is needed to create a different
@@ -398,7 +406,7 @@ function convert_time
time_string=${time_string}${output[$i]}${timenames[$i]};
fi;
done;
if [ ! -z ${ms} ] && [ ${ms} -gt 0 ]; then
if [ ! -z ${ms} ] && [ "${ms}" != "nan" ]; && [ ${ms} -gt 0 ]; then
time_string=${time_string}" "${ms}"ms";
fi;
# just in case the time is 0