Closed: Node-Red snapshots

Hi All,

Now Node-RED has hit 1.0 I’ve started using it, like many others I love it.

I’m trying to work out the best way to ensure my flows are captured in my snapshot. I’ve read mixed things online about the in-built HASS.io snapshot capturing these from, “beware it doesn’t” to “its stored in xxxx folder (people think different folders”. I ran a snapshot and checked my own snapshot and couldn’t locate the node-red settings in the homeassistant.tar file.

I can see everything else (my yaml files, .cloud, etc): https://imgur.com/a/cR30OZb

My key questions

  • Do the node-red settings get captured as part of a snapshot, if so where? (or is mine just bugging out?)
  • If not, how are people backing up Node-Red as its now core to my home automation!

Notes: Using HASS.io 0.86.4 and Node-Red via Frenck (v1.3.0)

Are you sure there isn’t a folder inside of your /config folder node-red that contains all the flows.json? I have that so it is saved in the snapshots

See here… Home Assistant Community Add-on: Node-RED

@DrJeff turns out, all my snapshots since installing node-red had a bug causing the snapshot to finish before compiling the entire homeassistant folder.

After reading this post, i looked into the logs - fixed the issue I had (completely unrelated to Node-RED) and now node-red is in my backups!

Thank you so much for pointing me to the right spot (my own searching pulled up too many variations). Really appreciate it.

For anyone else looking, you should should node-red in your homeassistant.tar, screenshot of mine for anyone wanting to confirm.

1 Like

Will mark this as closed (not sure proper practice, but save others from checking!)

@mitch Any chance you can outline how you debugged your snapshots? Mine are also missing the nodered config.

Generally isn’t it a bit concerning that snapshots aren’t quite safe?

Hey @sshaikh , it turned out Node-Red works perfectly. I actually had an issue with Snapshots driven by another plugin/issue. Because Node-Red ran “last” in the snapshot sequence it appeared to be missing. However as the second last item was erroring i incidentally assumed it was Node-Red.

To solve, I hit “full snapshot”, checked my logs and then debugged. From memory it was due to some old plugin that was no longer compatible; which i’d forgotten about and wasn’t using anyway so I just removed it and Node-Red worked like a treat.

Now Node-RED has hit 1.0 I’ve started using it, like many others I love it.

I’m holding off v1.0 right now as it’s still in beta, I suggest using the latest stable 0.20.7: Maintenance Release version if you are having issues.

Thanks @mitch. I also have an error in my logs, but it’s not due to a plugin but what seems to be a known issue to do with temp db files: