V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
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 · Sep 23, 2020 · 2365 views
    This topic created in 2042 days ago, the information mentioned may be changed or developed.
    新人求带
    7 replies    2020-09-24 11:10:12 +08:00
    pmispig
        1
    pmispig  
       Sep 23, 2020
    首先你要有一个全量备份,然后再基于 binlog 一直应用到某个时间点就好了
    ffeefly
        2
    ffeefly  
    OP
       Sep 23, 2020
    现在想做一个基于时间点的单库单表恢复,有点无从下手
    ffeefly
        3
    ffeefly  
    OP
       Sep 23, 2020
    @pmispig 这个只能全量恢复,做不到单表的时间点恢复
    ben1024
        4
    ben1024  
       Sep 23, 2020
    全量备份是在运行一段时间,如果期初的阶段全量为零亦可,
    binlog 可以指定表和时间范围,
    解析 binlog 就看自己采用的工具了
    singerll
        5
    singerll  
       Sep 23, 2020 via Android
    有个 mysql 的闪回方案,具体没用过,看出参考下
    ffeefly
        6
    ffeefly  
    OP
       Sep 24, 2020
    @ben1024 多谢老哥提点,我研究研究
    ffeefly
        7
    ffeefly  
    OP
       Sep 24, 2020
    @singerll 多谢提点,再看美团提供的闪回工具
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3422 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 12:17 · PVG 20:17 · LAX 05:17 · JFK 08:17
    ♥ Do have faith in what you're doing.