Skip to content
Jens Berthold edited this page Jan 22, 2016 · 24 revisions

What is it?

This is a database backup script for all Zabbix versions from 1.3.1 up to 2.4.0.

The script distincts between configuration and mass data tables. Tables holding configuration data will be fully backuped while for mass data tables only the table schema is stored. This way you have a small backup of your complete configuration and in case of disaster "only" loose your item history.

The script was successfully tested with the following Zabbix versions:

  • 2.4.0
  • 2.2.5
  • 2.0.0

If this script works for you and your Zabbix version isn't listed - please tell me: github@jebecs.de.

Download

Download the latest (stable) release here:

https://github.com/maxhq/zabbix-backup/releases/latest

Changes in version 0.7.1 (2015-01-27):

  • All settings are now done via commandline arguments (no hardcoded server, user etc. anymore)
  • The IP or hostname of the database server is included in the backup filename
  • The script now stops if the database password is wrong
  • The script name ;-)

Usage

Just call the script without any arguments to see a usage description:

./zabbix-mysql-dump

Files in repository

  • zabbix-mysql-dump

    The script to backup a Zabbix MySQL database

  • get-table-list.pl

    Helper Perl script that shows all database tables that have ever been used in Zabbix (since 1.3.1). It queries the Zabbix Subversion repository to fetch the informations.

Clone this wiki locally