-
Notifications
You must be signed in to change notification settings - Fork 18
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
Address Database-Corruption in the script and also add a disclaimer in the corresponding yt-video #15
Comments
Ok, So to answer my own question: Database corruption isn't addressed and it'll happen eventually. Somebody run into this the hard way on reddit. I won't post the link as I am against using reddit. I think SpaceinvaderOne should update his video to address this specific issue. Otherwise newbies won't have any recoverable backups. |
Awesome script, and I have a solution for this that perhaps you could incorporate into the script, so its a couple things, First create a variable that when set to yes would call a "does docker container DB?" function. Add this as part of the pre-check, the code would be In this way we can start/ stop containers with DB's with this script by simply applying labels to them (feel free the change the label to whatever you want). This should allow the pending changes to be written to the DB on container shutdown to avoid the DB and changes in ram from getting out of sync due to snapshotting. This issue is especially bad when nextcloud is working with a MS SQL or MYSQL DB backend. |
Yes thats a great idea to add a label to various containers. I will implement that for sure. |
Hi. At least for MySQL/MariaDB database containers I've added a new functionality to the script - please check my PR #21. |
Thanks for this awesome Script. Important question:
Did you and how did you solve the issue with database-corruption?
When doing a snapshot of a live database (fe. sqlite3 for radarr, sonarr etc), the snapshop holds a version of a possibly corrupt database and hence is possibly useless: https://www.google.com/search?q=sqlite+zfs+snapshot
The text was updated successfully, but these errors were encountered: