Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL: --single-transaction flag, chunking and binlog #5

Open
RoxasShadow opened this issue Oct 16, 2015 · 0 comments
Open

MySQL: --single-transaction flag, chunking and binlog #5

RoxasShadow opened this issue Oct 16, 2015 · 0 comments

Comments

@RoxasShadow
Copy link
Owner

falcolas:

The mysql driver needs additional work. In particular, it needs a '--single-transaction' flag, or a global lock, to ensure that the dump is consistent - particularly if you want to dump multiple databases concurrently.

Doing one dump per table with chunking (each file has N rows) would help with both speed and disk sizes of backups by allowing S3 or some other program to implement de-duplication between incremental backups.

It also wouldn't hurt to capture the binlog position, if available, to enable point in time recovery.

Have a look at mydumper for an idea of how another tool implemented these:

https://launchpad.net/mydumper

RoxasShadow added a commit that referenced this issue Oct 16, 2015
DBMS/MySQL: Add flag --single-transaction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant