Skip to content

Help developer with Mac OS X to recover the mysql snapshot created by percona xtrabackup.

License

Notifications You must be signed in to change notification settings

wushaobo/percona-binlog-recover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

percona-binlog-recover

Help developers with Mac OS X to recover the mysql snapshot created by percona xtrabackup.

Why

The mysql snapshot created by percona-xtrabackup needs two steps to recover to a new datatbase:

  1. decompress from tar.gz to folder.
  2. apply binlog.

The second step requires percona-xtrabackup in command, which is not provided on mac.

Idea

The idea is to start a docker container with percona-xtrabackup inside and share disk volumn with host, apply binlog in container and tear down the container for the host.

Run

Checkout the apply_mysql_binlog.sh as executable and run it.

Usage: apply_mysql_binlog.sh /ABSOLUTE/PATH/TO/MYSQL_SNAPSHOT/FOLDER

About

Help developer with Mac OS X to recover the mysql snapshot created by percona xtrabackup.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages