MySQL备份脚本-mylvmbackup
2013-06-27 09:30:59

本站赞助商链接,请多关照。 mylvmbackup 是可以用来快速备份 MySQL 数据文件的 Perl 脚本。


它的工作原理大致如下:备份数据时,mylvmbackup 将锁定 MySQL 所有的表,并将缓存中数据写到磁盘,然后执行 LVM 快照 后解锁。

mylvmbackup is a Perl script for quickly creating backups of a MySQL server's data files. To perform a backup, mylvmbackup obtains a read lock on all tables and flushes all server caches to disk, makes an LVM snapshot of the volume containing the MySQL data directory, and unlocks the tables again. The snapshot process takes only a small amount of time. When it is done, the server can continue normal operations while the actual file backup proceeds. The actual backup can be performed by using tar, rsync, or rsnap.

最新版本:0.14
包含大量的提升、代码清理和新功能。

项目主页:http://freecode.com/projects/mylvmbackup