Backup of the zigbee2mqtt database

@guim31 There were 3 developments required for this feature :

I don’t think testers are needed at this stage (the functional part is already validated), what’s left is tech-jargon ping-pong between Alex and me :smiley:

I’ll keep everyone informed here anyway as soon as it’s ready / or if new testers are needed.

1 Like

Thank you so much @pierre-gilles for all those details!
I think you can tell that I’m impatient :sweat_smile:
I can’t wait to try out my NUC! :wink:

To give an update here

I did a full review of PR #2 two weeks ago, and I had requested a Docker image to test. @AlexTrovato provided me with an image, which I launched today on an instance to run tests.

This PR #2 touches many areas because it’s a fairly large refactor of the code related to background task scheduling in Gladys.

This PR affects Gladys Plus code, so it’s very sensitive in my view because it impacts paying customers and there must be no regressions.

For now I’ve listed all these behaviors to test in real conditions:

@AlexTrovato Could you update your PR so we can provide an image to test here and get feedback? :slight_smile: (I’m talking about PR #2 on the common-scheduler)

1 Like

The PR has been updated, the image is being built, it will take about 2 hours from now before it becomes available.

Its name: atrovato/gladys:common-scheduler.

Thanks :slight_smile:

1 Like

I’d be happy to test some stuff to take part in these devs… But I imagine you need a Zigbee2mqtt dongle connected to the test machine?

@AlexTrovato I tested the sunset last night, it still works just as well :smiley:

(I went to check for myself that the sun was actually setting, you never know)

I also got the notification this morning for the sunrise, but I didn’t go check, I was sleeping :joy:

For Gladys Plus backups and hourly aggregations, that looks good to me too :slight_smile:

Basically, only the login gateway + Amazon Alexa + Google Home are left

Thanks! :pray:

Not for this test, we’re not yet at the Zigbee2mqtt backup PR (which has already been tested, by the way)

Here we’re testing the « common-scheduler » PR which implements a new task scheduler in Gladys.

3 Likes

@guim31 Don’t worry about it, I ran all the tests this morning on my end.

Google Home :white_check_mark:
Alexa :white_check_mark:
Login Gateway :white_check_mark:

Nice work @AlexTrovato, I’m merging into master!

Next step, PR No. 3!

3 Likes

[quote="p

1 Like

PR #3, with z2m backup, is up to date:

The new image atrovato/gladys:zigbee2mqtt is ready.

I tested it this morning, it seems ok:
:white_check_mark: DB backup
:white_check_mark: Restore backup
:question: Auto backup schedule (I’m waiting for 11

2 Likes

Damn… I’m impatient!! I’m already itching to switch to my NUC to see the change!!

Great, thanks!

The PR looks good code-wise; keep me posted on this point:

:slight_smile:

Verdict :
image

2023-02-10T23:00:00-0700 <info> backup.js:39 (Zigbee2mqttManager.backup) Zigbee2MQTT request for backup
2023-02-10T23:00:13-0700 <info> saveZ2mBackup.js:12 (Zigbee2mqttManager.saveZ2mBackup) Zigbee2mqtt: storing backup...
2023-02-10T23:00:14-0700 <info> saveZ2mBackup.js:24 (Zigbee2mqttManager.saveZ2mBackup) Zigbee2mqtt: backup stored

Everything seems

6 Likes

Does that mean this backup feature will be included in the next Gladys release?

Great :sunglasses:

Thanks for the development and testing, it’s fine with me!

I’ve just merged into master, it will be included in the next Gladys release :tada:

4 Likes

The Zigbee2mqtt backup is available in Gladys Assistant 4.18:

2 Likes