数据库增量备份
1、数据庞大。
[root@db ytad]# du -sh
121G .
[root@db mysql]# ll -h
total 99G
-rw-rw---- 1 mysql mysql 5 Sep 28 13:46 db.pid
-rw-rw---- 1 mysql mysql 71G Sep 29 11:25 ibdata1
-rw-rw---- 1 mysql mysql 500M Sep 29 11:25 ib_logfile0
-rw-rw---- 1 mysql mysql 500M Sep 29 10:47 ib_logfile1
-rw-rw---- 1 mysql mysql 500M Sep 29 11:00 ib_logfile2
-rw-rw---- 1 mysql mysql 500M Sep 29 11:16 ib_logfile3
如果导入到新库估计得花1天的时间才能完全导入完成。
2.备份方式。
<1>、热备份,主从来备份
<2>、程序备份,定时读取新的sql并备份下来。
我用了第2种方式,因为自己的数据特征,选择了一个小时备份一次,然后用过rsync同步到存储备份的机器。
posted on 2011-09-29 11:31 VirtualLife 阅读(195) 评论(0) 收藏 举报
浙公网安备 33010602011771号