mysql-binlog备份
#!/bin/bash ##切换归档 /u01/mysql/bin/mysql -h 127.0.0.1 -uroot -p'123456' -e "FLUSH LOGS;" ##备份binlog到nas rsync -av --include "mybinlog.*" --exclude="*" /u01/mysql/data/ /backup/test
目前生产环境1小时执行一次,备份binlog到nas存储。
对比还是Oracle的rman工具备份归档较方便;