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

Add lock capabilities during snapshot #2063

Merged
merged 4 commits into from
Jun 17, 2021

Conversation

agners
Copy link
Member

@agners agners commented Jun 8, 2021

This adds a new service mariadb-lock to the root file system. The service locks all tables, making it possible to copy the complete database while still running the database daemon. This is the documented procedure for file system snapshots (see https://mariadb.com/kb/en/backup-and-restore-overview/#filesystem-snapshots).

Note that the mariadb client must stay open.

Fixes: #1353

agners added 2 commits June 8, 2021 19:40
Add an additional service which helds a lock on all database tables.
This allows to safely snapshot the database files.
Copy link
Member

@ludeeus ludeeus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version in config.json needs to be bumped, and the changelog.md file needs to be adjusted

@agners agners requested a review from ludeeus June 17, 2021 11:44
@agners
Copy link
Member Author

agners commented Jun 17, 2021

@pvizeli thanks for addressing this, was about to do it too :)

@pvizeli pvizeli merged commit 1a10f96 into master Jun 17, 2021
@delete-merged-branch delete-merged-branch bot deleted the add-lock-capabilities-during-snapshot branch June 17, 2021 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MariaDB does not recover from HASS.io backup
4 participants