定时备份ZABBIX数据库
#!/bin/bash ########################### red='\e[0;31m' RED='\e[1;31m' green='\e[0;32m' GREEN='\e[1;32m' blue='\e[0;34m' BLUE='\e[1;34m' purple='\e[0;35m' PURPLE='\e[1;35m' NC='\e[0m' ########################### source /etc/bashrc source /etc/profile MySQL_USER=zabbix MySQL_PASSWORD=zabbix #修改对应的密码 MySQL_HOST=localhost MySQL_PORT=3306 MySQL_DUMP_PATH=/home/zabbix-datafile-backup MYSQL_BIN_PATH=/usr/bin/mysql MYSQL_DUMP_BIN_PATH=/usr/bin/mysqldump