Zabbix 4.0 and PostgreSQL
The script now supports PostgreSQL and Zabbix 4.0 and reads zabbix_server.conf by default.
Direct download
zabbix-mysql-dump (v0.9.0)
Breaking changes
The script was renamed to zabbix-dump
.
Database connection params are now read from /etc/zabbix/zabbix_server.conf by default but still can be overridden using command line options.
To prevent reading the Zabbix config please use option -Z
(capital Z).
To specify a non-standard path to the config use -z
(small z).
Option -h
(and --help
) now show the help text.
To specify the database host please use -H
.
Executing the script without any options will start the backup.
New options
-t DATABASE_TYPE
Database type (mysql or psql).
Default: $DBTYPE
-P DBPORT
DBMS port.
Default for mysql: 3306
Default for psql: 5432
-z ZABBIX_CONFIG
Read database host and credentials from given Zabbix config file.
Default: $ZBX_CONFIG
-Z
Do not try to read the Zabbix server configuration.
-h
--help
Show help.
Changelog
Please see README.md.