Backups, recovery in a HA environment #2068
Replies: 6 comments 13 replies
-
@Swallowtail23 So essentially you would like a new Backup/Restore section on docs to explain in details all the things you listed there? BTW the important things to backup are |
Beta Was this translation helpful? Give feedback.
-
I've learned quite a bit over the last 24h on this subject from a thread on the HA forums, but it has reinforced that it is not intuitively clear (UI, UX, documentation) how to backup / restore zwjs2mqtt's state, and that at the moment to achieve what I need is a combination of HA functionality (add-on backup to capture the store) and zwjs2mqtt functionality (NVM). I know now that zwavejs2mqtt can run in other environments to HA, but for this discussion I'm working with HA so will talk in that context. You make a comment @robertsLando "place those files in store folder" - I cannot directly do that in my HA environment, I don't have access to the folder. I can use HA capability to restore it yes... but: A key question: is zwavejs2mqtt wanting to 'stand alone' with regard to its ability to backup/restore the ZWave environment, regardless of its 'host'? The end goal is restoration when required, yes? Working back from the end goal there are four scenarios I can see which need to be catered for:
After reading, learning and a lot of thought... what would make sense to me :) is if zwjs2mqtt included inbuilt restorability (i.e. manual backup/restore) for Store and NVM (as between them those cover the 4 scenarios) and (ideally/optionally) exposed that capability via api or to built-in host tools to whatever 'host' system is running to be able to automate backups. |
Beta Was this translation helpful? Give feedback.
-
So, Long time :) |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is still being considered, but wanted to give my input supporting the ideas in this thread. I do weekly manual NVM backups, and today my Zooz Z-wave 700 stick got corrupted after a problematic SmartStart inclusion. Initially I tried to restore my last ProxMox VM backup, but it didn't help, only my last NVM download saved my ass. My whole house is Z-wave, and without the manual backups I would have basically needed to start from scratch in a house with 50+ Z-wave devices. Having a way to automatically backup NVM with inclusion/exclusion/firmware updates, with HA backups, and best of all using an api, would be amazing. |
Beta Was this translation helpful? Give feedback.
-
Working on it: #2469 |
Beta Was this translation helpful? Give feedback.
-
I came here to ask about this, because I just saw the Store Backup function in zw2m CP. Up to this point, I've assumed that doing a Snapshot in HA would back up everything, including integrations and their configuration data. Is this not the case? Do I need to be backing up zw2m configs regularly too, along with the NVM? BTW, my backup settings are both turned off (default? These have been added since last I looked at options). Also, do you guys know if the latest Aeotec Z-Stick 5+ can be soft-reset safely, or should I check with Aeotec? ... and ... it looks like you've already added the Update/Restore functionality! ;-) |
Beta Was this translation helpful? Give feedback.
-
I have HA running as a VM on KVM/virtio. I have a solid and automated backup process for all of my IT environment - the VM gets backed up locally and to AWS S3 regularly/automatically, and HA is set to a full daily/weekly/monthly backup routine using one of the great add-ons available. I've tested recovery from both full VM file and add-on.
I've now added ZWave, with an Aeotec Z-Stick Gen5+, about 35 devices and ZWave 500 entities in HA, and am looking to see how to automate backups for simple recovery (if needed). I'm using ZWaveJS2MQTT as control panel only, MQTT gateway disabled.
Starting again with exclusion/reinclusion/renaming/automation-testing and -fixing/etc takes me about 2 days to do from scratch (having just done it to migrate from Vera).
I have no access to where ZWaveJS2MQTT keeps its "Store" except through the Control Panel, where I can manually download json files but not obviously recover them. "Backup" in advanced creates a useless (for recovery) nodes.json. I can (again manually) run an NVM backup (thanks @AlCalzone for your support on that in last 24h) but I am unclear on what that will recover if restored to bare metal / new install.
There is some very basic instructions on backup
Backing Up Settings
Settings, scenes and the Z-Wave configuration are stored in JSON files under the project store folder. It is a good idea to backup those files, which can be done by backing up the store or using the import/export buttons.
...but beyond reminding that it is a "good idea" that doesn't actually provide much useful info/details.
Suggestion:
Restore should be easy, backups should be automatic.
I can get involved with testing, I'm technical but not a developer, I'm happy to get involved.
Thank you all for the amazing piece of work. I LOVE this add-on, and my ZWave is now MILES better and easier to manage than it was with Vera.
Beta Was this translation helpful? Give feedback.
All reactions