Zabbix Database backup
We can take the backup of the database regularly so that we dont loose data in case of any failure in the production environment. Currently the documentation is for the MySQL database users where we will be taking use of mysqldump
utility to take backup & restoring the database.
Here is the syntax of the mysqldump utility to take the database backup :
To take backups of all database of any specific database we can use the following syntax:
Now we will cover zabbix database backup configuration :
First we will ensure that there are no database write done on the database when backup is taking place to avoid any data corruptions on the go. For this we will stop the zabbix server for a while.
Then we will take the database backup using the mysqldump
utility :
Where the ZABBIX_USERNAME
& ZABBIX_DB_NAME
are the username pair set when installing the zabbix database first time.
Once the database backup complete we can start the service back normal, The database backup could take time depending on the database size.
Last updated