如何在Mysql中进行增量备份

发布于 2024-10-06 17:25:32 字数 468 浏览 0 评论 0原文

可能的重复:
进行增量备份的最佳方法是什么Mysql?

有没有办法在MySQL中进行差异增量备份?我不知道是否有 PHP 脚本或 shell 脚本能够做到这一点。

我相信每个表的状态都必须保存,并且它们的差异必须在备份中导出。有什么办法可以实现这一点吗?

我知道还有其他类型的备份,但我喜欢在差异增量备份中同时生成较小备份的方式。

编辑:

我忘记指定我的数据库引擎是InnoDB

Possible Duplicate:
What is the best way to do Incremental backups in Mysql?

Is there a way to do differential incremental backup in MySQL ? I dont know if there is a PHP script or shell script able to do this.

I believe each tables states must be saved and their differences must be exported in the backup. Any way to accomplish this?

I know there are other types of backup but I like the way smallers backup are generated at time in differential incremental backups.

Edit:

I forgot to specify that my DB engine is InnoDB

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷心人i 2024-10-13 17:25:32

是的,称为增量备份而不是差异备份
(如果我做出错误的假设,请纠正我)

使用二进制日志(复制sql日志)

在简而言之,二进制日志包含写入 SQL 的列表(插入、删除、更新、更改表...)并按顺序执行这些语句将提供增量更新(这就是复制的作用)

Yes, is called incremental backup instead of differential backup
(correct me if I making wrong assumption)

use binary log (replication sql log)

in nutshell, binary log contains list of write sql (insert,delete,update,alter table...) and execute these statement sequentially will provide a incremental update (which is what replication does)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文