Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
297c745df7 | ||
|
|
a2bf6b3331 |
@@ -273,6 +273,8 @@ There are no control files for gitea backup
|
|||||||
|
|
||||||
## zabbix config backup settings
|
## zabbix config backup settings
|
||||||
|
|
||||||
|
The `zabbix-dump` dump script must be installed from: <https://github.com/gullevek/zabbix-backup>
|
||||||
|
|
||||||
### zabbix Config Variables
|
### zabbix Config Variables
|
||||||
|
|
||||||
| Variable | Default | Description |
|
| Variable | Default | Description |
|
||||||
@@ -281,6 +283,7 @@ There are no control files for gitea backup
|
|||||||
| ZABBIX_DATABASE | '' | Must be set as either psql or mysql |
|
| ZABBIX_DATABASE | '' | Must be set as either psql or mysql |
|
||||||
| ZABBIX_CONFIG | '' | if not set uses default location |
|
| ZABBIX_CONFIG | '' | if not set uses default location |
|
||||||
| ZABBIX_UNKNOWN_TABLES | '' | if set, changed to -f (force) |
|
| ZABBIX_UNKNOWN_TABLES | '' | if set, changed to -f (force) |
|
||||||
|
| ZABBIX_DB_PORT | '' | if set, sets -P parameter on zabbix backup script to override auto get from zabbix server config |
|
||||||
|
|
||||||
### zabbix Control files
|
### zabbix Control files
|
||||||
|
|
||||||
|
|||||||
@@ -62,10 +62,11 @@ if [ -z "${_MYSQL_OK}" ]; then
|
|||||||
fi;
|
fi;
|
||||||
# below is for file name only
|
# below is for file name only
|
||||||
# set DB_VERSION (Distrib n.n.n-type)
|
# set DB_VERSION (Distrib n.n.n-type)
|
||||||
# NEW: mysql Ver 15.1 Distrib 10.5.12-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
|
# OLD: mysql Ver 14.14 Distrib 5.7.35, for Linux (x86_64) using EditLine wrapper
|
||||||
# OLD: mysql Ver 14.14 Distrib 5.7.35, for Linux (x86_64) using EditLine wrapper
|
# NEW: mysql Ver 15.1 Distrib 10.5.12-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
|
||||||
|
# VARIANT: mysql from 11.8.3-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using EditLine wrapper
|
||||||
_DB_VERSION_TYPE=$("${MYSQL_CMD}" --version);
|
_DB_VERSION_TYPE=$("${MYSQL_CMD}" --version);
|
||||||
_DB_VERSION=$(echo "${_DB_VERSION_TYPE}" | sed 's/.*Distrib \([0-9]\{1,\}\.[0-9]\{1,\}\)\.[0-9]\{1,\}.*/\1/');
|
_DB_VERSION=$(echo "${_DB_VERSION_TYPE}" | sed 's/.*\(Distrib\|from\) \([0-9]\{1,\}\.[0-9]\{1,\}\)\.[0-9]\{1,\}.*/\2/');
|
||||||
DB_VERSION=$(echo "${_DB_VERSION}" | cut -d " " -f 1);
|
DB_VERSION=$(echo "${_DB_VERSION}" | cut -d " " -f 1);
|
||||||
# temporary until correct type detection is set
|
# temporary until correct type detection is set
|
||||||
DB_TYPE="mysql";
|
DB_TYPE="mysql";
|
||||||
|
|||||||
Reference in New Issue
Block a user