V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
ffeefly
V2EX  ›  MySQL

对于 mysql 备份 binlog 或者是 xtrabackup 备份文件,怎么基于时间点获取备份可恢复的库、表?

  •  
  •   ffeefly · 2020-09-23 17:45:05 +08:00 · 1535 次点击
    这是一个创建于 1303 天前的主题,其中的信息可能已经有所发展或是发生改变。
    新人求带
    7 条回复    2020-09-24 11:10:12 +08:00
    pmispig
        1
    pmispig  
       2020-09-23 18:01:26 +08:00
    首先你要有一个全量备份,然后再基于 binlog 一直应用到某个时间点就好了
    ffeefly
        2
    ffeefly  
    OP
       2020-09-23 18:03:41 +08:00
    现在想做一个基于时间点的单库单表恢复,有点无从下手
    ffeefly
        3
    ffeefly  
    OP
       2020-09-23 18:04:31 +08:00
    @pmispig 这个只能全量恢复,做不到单表的时间点恢复
    ben1024
        4
    ben1024  
       2020-09-23 18:13:20 +08:00
    全量备份是在运行一段时间,如果期初的阶段全量为零亦可,
    binlog 可以指定表和时间范围,
    解析 binlog 就看自己采用的工具了
    singerll
        5
    singerll  
       2020-09-23 18:15:51 +08:00 via Android
    有个 mysql 的闪回方案,具体没用过,看出参考下
    ffeefly
        6
    ffeefly  
    OP
       2020-09-24 11:01:34 +08:00
    @ben1024 多谢老哥提点,我研究研究
    ffeefly
        7
    ffeefly  
    OP
       2020-09-24 11:10:12 +08:00
    @singerll 多谢提点,再看美团提供的闪回工具
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3931 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:58 · PVG 08:58 · LAX 17:58 · JFK 20:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.