I Came across an open-source community supported tool for backing up the zabbix database. The tool is called mysql-zrm (ZRM means Zmanda recovery manager). These people have a guide for configuring and scheduling a MySQL DB backup (see http://www.zmanda.com/quick-mysql-backup.html) and it takes only 15 minutes to work through the document.
If you are struggling with your backups I would suggest using this tool, it certainly made my life much easier.
I'm now making daily config backups (all tables except history and trends) and a weekly complete backup. The daily backups (about 14MB worth of configuration) is backed up with MySQL running and takes about 5 minutes. The backup file is also compressed. I use logical backups, which means that you can restore them like when you create the ZAbbix DB (preoblem is that you need to restore/import it into an empty/new DB so that you don't have any problems). I have not yet tested the restore, but I'm sure it will work. I will also post the weekly backup results with a complete restore.
My complete Zabbix DB is about 2.3 GBs and I've been monitoring (25 hosts and a total of 1190 items) since beginning of October 2006. I only store history on most of my items for 7 days and trends for 365 days. The DB does not grow too much at the moment.
If you are struggling with your backups I would suggest using this tool, it certainly made my life much easier.
I'm now making daily config backups (all tables except history and trends) and a weekly complete backup. The daily backups (about 14MB worth of configuration) is backed up with MySQL running and takes about 5 minutes. The backup file is also compressed. I use logical backups, which means that you can restore them like when you create the ZAbbix DB (preoblem is that you need to restore/import it into an empty/new DB so that you don't have any problems). I have not yet tested the restore, but I'm sure it will work. I will also post the weekly backup results with a complete restore.
My complete Zabbix DB is about 2.3 GBs and I've been monitoring (25 hosts and a total of 1190 items) since beginning of October 2006. I only store history on most of my items for 7 days and trends for 365 days. The DB does not grow too much at the moment.
Comment