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

v1.3.0 regression: Restoring snapshots from previous versions #1170

Closed
rfay opened this issue Oct 11, 2018 · 1 comment
Closed

v1.3.0 regression: Restoring snapshots from previous versions #1170

rfay opened this issue Oct 11, 2018 · 1 comment
Assignees
Milestone

Comments

@rfay
Copy link
Member

rfay commented Oct 11, 2018

Describe the bug

However, I seem to have increased the error-checking in the snapshot code in ddev itself and it now prevents that. So you still get $ ddev restore-snapshot umami_maria_10_1 Failed to restore snapshot umami_maria_10_1 for project d8git: snapshot db_snapshots/umami_maria_10_1 is not compatible with this version of ddev and mariadb. Please use the instructions at https://ddev.readthedocs.io/en/latest/users/troubleshooting/#old-snapshot for a workaround to restore it but unfortunately that workaround doesn't work.

  • An additional step was required anyway. You had to ddev rm -RO before starting up, because the v1.2.0 container was unable to function with the v1.3.0 database, so came up broken.
@rfay rfay added this to the v1.3.0 milestone Oct 11, 2018
@rfay
Copy link
Member Author

rfay commented Oct 11, 2018

I think this can be fixed by changing https://github.com/drud/ddev/blob/c9e3cb59ca1d56f12b5c91eac464f2bcc0bdd413/pkg/ddevapp/ddevapp.go#L909-L911
app.Exec("db", "bash", "-c", "mysql --database=mysql -e 'DROP DATABASE IF EXISTS db; CREATE DATABASE db;' && cat /db/*.*sql | mysql db")
to add an app.Exec('db', 'bash', '-c', 'mariabackup --version | grep 10.2') or something like that.

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

2 participants