Skip to content
Jens Berthold edited this page Aug 6, 2020 · 24 revisions

What is it?

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

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:

  • 4.4.4 (Majed)
  • 4.2.1 (maxhq)
  • 4.0.0 (wschaft)
  • 3.4.1 (PetzJohannes)
  • 3.2.7 (ignaqui)
  • 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: [email protected].

Download

Download the latest (stable) release here:

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

Usage

To see a usage description call the script like this:

./zabbix-dump -h

Files in repository

  • zabbix-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 Git repository to fetch the informations.

Clone this wiki locally