Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 ansible/shell 命令增量备份 mysql DB。谁能给我其中涉及的步骤。我的 MySQL 中有一个数据库和表。my.cnf 文件具有该配置。每隔一小时我想做一次备份并将我的数据库数据上传到 s3 存储桶。
在不使用 LSN 值的情况下,我们可以实现解决方案。
Flush binary logs
binlog.index
当前时间戳名称值保存的文件。
使用crontab -e文件完成自动化调度。
crontab -e
1 */1 * * *是用于时间安排的值。[每小时的第一分钟]
1 */1 * * *