Ad Widget

Collapse

Backups

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elikatz79
    Junior Member
    • May 2017
    • 17

    #1

    Backups

    Hello all,

    We are running Zabbox 4.0.10 on CentOS, we have a daily mysqldump backup for the database and were wondering if there is a need to also backup conf files (or any other file for that matter) - if so, which files should we backup?
    Thanks!
    Eli
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    You should also back up the configuration file. If the environment was built using Zabbix standard package, the configuration file and monitoring script should be saved in the following directory.

    /etc/zabbix
    /usr/lib/zabbix

    If you are calling your own extensions or scripts, back them up as well.

    Comment

    • elikatz79
      Junior Member
      • May 2017
      • 17

      #3
      Perfect, thank you!
      I wrote a simple script for this task:

      #!/bin/bash

      TODAY=$(date +%Y-%m-%d)

      FILENAME="PLTMON01_configs_backup_$TODAY.tar.gz"

      LOGFILE="/var/log/zabbix_configs_backup.log"

      SRCDIR1=/etc/zabbix
      SRCDIR2=/usr/lib/zabbix
      DESDIR=/backups/configs
      tar -cpzf $DESDIR/$FILENAME $SRCDIR1 $SRCDIR2

      Comment

      Working...