Random Nerd Tutorials
Shares

Exporting and Backing Up your Node-RED Nodes

Shares

This post shows how to export your Node-RED Nodes.

This is useful if you need to:

  • Backup your Node-RED flow
  • Move your flow to another Raspberry Pi (or machine)
  • Share your Node-RED project with others

Example

Imagine that you had the following nodes in your flow:

exporting Node-RED

You would need to click the deploy button on the top-right corner to save your application.

7 - Deploy Your Application

Then you would select with your mouse all the nodes that you wish to export and they would be highlighted in orange (as shown below):

select Node-RED nodes

Exporting

Now with the nodes highlighted, you open the top Menu, go to Export and select Clipboard.

export

A new window opens. Copy the text that appears and save it.

export nodes

This is how the text looks for the flow demonstrated in this example:

[{"id":"b9884d5c.5211e","type":"inject","z":"2a15e348.a7c6dc",
"name":"","topic":"","payload":"hi","payloadType":"str","repeat"
:"","crontab":"","once":false,"x":294,"y":123,"wires":[["cb6af
000.5a3e6"]]},{"id":"cb6af000.5a3e6","type":"debug","z":"2a15e
348.a7c6dc","name":"","active":true,"console":"false","complet
e":"false","x":447,"y":123,"wires":[]}]

Importing

Now you could go to another Raspberry Pi or a machine that has Node-RED installed and you could simply import your flow.

You only have to go to the Import menu and paste your nodes in text format (as show below).

import

Important: If you have previously installed extra nodes (for example Node-RED Dashboard), you’ll also have to install those nodes in your new machine, otherwise the Import process will not work.

Recommended Resources

Home Automation using ESP8266 »
Build IoT projects and home automation gadgets with the ESP8266 Wi-Fi module.

Build a Home Automation System »
Learn how to build a automation system using open-source hardware and software from scratch.

Arduino Step-by-Step Projects »
Build 25 cool Arduino projects with our couse even with no prior experience!

Leave a Comment:

⏰ Early Black Friday 2017 Special ⏰
Download all our courses up to 35% off