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

How do we restore a single database with the restore option? #30

Open
jimmyc802 opened this issue Dec 13, 2017 · 2 comments
Open

How do we restore a single database with the restore option? #30

jimmyc802 opened this issue Dec 13, 2017 · 2 comments

Comments

@jimmyc802
Copy link

jimmyc802 commented Dec 13, 2017

I attempted to restore a single database by pointing to the directory of said backup. For example:

sh surrogate -c /backup/mysql/backups/daily/Mon/full_2017-12-11_2200/mysql_database

I quickly realized this would not work because of the required files in the parent directory. Which begs the question...how do we restore a single database? If that is not possible with Surrogate, what are other folks doing to solve this challenge?

@giaur500
Copy link

giaur500 commented Feb 5, 2018

You can't. Percona xtrabackup does not support restoring single database. You can only restore single table, but procedure is complicated.

@roni-estein
Copy link

If anyone has ever figured this out, it would be an amazing contribution. The information is so scant, that it feels impossible to find. Using mysql 8.0.25 at the time of this writing, and if you follow the xtrabackup docs, they basically tell you it can be done, but if you put in the prepared files and restart mysql, you end up corrupted and can basically never even get to terminal where you can run ALTER TABLE ${table} IMPORT TABLESPACE;

It's quite maddening 😰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants