Export Full Node Red Agent

Hey Allan,
i was looking around for a bit but haven’t found any real solution yet, so i thought maybe you have already figured something out. So i am working on a node Red agent in self hosted OpenCore.
This OpenCore is our internal Dev OpenCore and it would be great if we could transfer a completely configured Node Red agent or at least the flows to another machine at a customer.

So far i could only figure out that i can export the flow as a json but that wouldn’t include the nuget packages which would have to be manually installed. Not a super huge hassle but would be great if somehow we could just export everything and the customer just imports and its done.

Greetings Marvin

Hey, sorry for the delay.

When you export from inside Node-RED, it will not include credentials. So, it’s a very good way to copy or move flows between environments, but it is not a good backup strategy (or at least it cannot stand alone).

When you create a Node-RED, you set an environment variable nodered_id. This is used for all objects in the database related to that Node-RED instance. So, doing a query like {"nodered_id": "throbbing-sun-3165"} will return all objects for that Node-RED.

You can use this query to make a snapshot via Git in OpenCore. You can use this query to download the JSON for all objects using PowerShell (maybe some of the examples here can inspire you) or just type the query in the search box in OpenCore and manually download the JSON.

(You can safely ignore the session one)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.