Jens Berthold edited this page Mar 1, 2017 · 17 revisions

What is it?

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

The script distincts between configuration and mass data tables. Tables holding configuration data will be fully backuped while for mass data tables (events, history, trends, ...) 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:

  • 3.0.7 (Lars Vinder)
  • 3.0.3 (ruslan-ohitin)
  • 2.4.0 (maxhq)
  • 2.2.5 (maxhq)
  • 2.0.0 (maxhq)

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

Download

Download the latest (stable) release here:

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

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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.