[英]Pros and cons for MySQL snapshots vs SQL dumps
What are the advantages/disadvantages of using database snapshots vs. backing up SQL dumps (from mysqldump
)? 使用数据库快照与备份SQL转储(来自mysqldump
)的优点/缺点是什么?
I find SQL dump files easy to backup and restore. 我发现SQL转储文件易于备份和恢复。 It seems to be much faster than using database snapshots as well so I am not sure what's the point of using snapshots when they take longer to use. 它似乎比使用数据库快照要快得多,所以我不确定使用快照时使用快照的重点是什么。
For additional context, I use MySQL 5.6 and more specifically AWS RDS Aurora (MySQL edition). 对于其他上下文,我使用MySQL 5.6,更具体地说是AWS RDS Aurora(MySQL版)。
Probably the most significant reason people use snapshots is that it can take days to import a large dump file. 人们使用快照的最重要原因可能是导入大型转储文件可能需要数天时间 。
Snapshots have several advantages: 快照有几个优点:
Dump files have advantages too: 转储文件也有优势:
grep
to search for data in a dump file. 您甚至可以使用grep
搜索转储文件中的数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.