How do I stop all add-ons with automation to perform a backup safely?

Hi,
I’ve had this problem for some time now, which corrupts my DB about every two days. I used Sqlite for about a year and switched to Maria-DB after the first crash, but the same thing happens, and now, as I said, all the time. I’ve been using the Google Drive backup addon with daily backup for about 6 months. I suspect this is where the problem lies. The services are not stopped properly. Even at Node Red the global.json was suddenly broken.

I’ve now switched back to Sqlite because that was the easiest way to save the old data.

I’m looking for a way to use automation in HA to deactivate the recorder and Node-Red, or other services, shortly before the backup starts and again afterwards. This is not a problem for the recorder, how do I do it with the other add-ons (Node-Red, Zigbee2mqtt, etc.)?

Are you using the options in GDB to stop addons before the backup completes? If so have you reported the issue to the addon dev?

What do you mean with “options in GDB to stop addons”? What is GDB? I am a Newby. Can you send me link to the documentation, where I can find it?

Sorry, Google drive backup… You said you were using it.

there’s a setting to stop addons before backing them up specifically to clear the issue you say you’re encountering.

ah, thank you, I found some options in “GDB”. I will try it out and report.

1 Like

My report,

yes, I could say it seems that it works with the “Stop add-on” option. I find the option in two different places. Directly in the add-on under “Unused hidden options” (use the slug name, separated by commas without spaces) and on the Google backup page. With the latter, you have to scroll down the settings and then you can simply click on the add-ons that you want to activate.

Thank you for the tip.

1 Like