March 26, 2020 By Kazuki Nobutani 3 min read

Node-RED is an open source programming tool for wiring hardware devices and services on the Internet and APIs. 

IBM Cloud offers a preconfigured Node-RED starter kit on its Cloud Foundry (CF) space

When you deploy the Node-RED starter kit, a Cloudant service instance will also be deployed. Node-RED on IBM Cloud is preconfigured to store its credential information and flow data in the bundled Cloudant. In this article, we are going to share how to backup the flow data in case of migration or in preparation for disaster recovery.

Prerequisites

  • IBM Cloud account 
  • Operator has the Writer or Manager service access against the Cloudant instance

Step 1: Backup your Node-RED flow

  1. Log in to IBM Cloud and go to the Resource list.
  2. Expand Services and open the Cloudant service instance. The name is usually the same as your Node-RED app name:
  3. Click Launch Cloudant Dashboard to view the Cloudant contents:
  4. The flow to backup is stored in a Database with the same name as your app. Open the Database and open <Your Database name>/flow:
  5. The flow data is in json format and its full string is within “flow”: []. Copy the json in the section, including [ and ] at the beginning and the end, and save it as a file with .json extension. Note: Do not include “flow”: in the json file:

Step 2: Restore your Node-RED flow

  1. Open your Node-RED app on the IBM Cloud dashboard and click Visit URL:
  2. Click Go to your Node-RED flow editor.
  3. Expand the top-right menu and click Import:
  4. Click Select a file to import. Select the backup json file and click Import

Summary

By following these steps, you’ll be able to backup and restore your Node-RED flows. This can be particularly helpful in case of drastic changes, migrations, or for disaster recovery purposes.

Learn more about Node-RED.

Was this article helpful?
YesNo

More from Cloud

Attention new clients: exciting financial incentives for VMware Cloud Foundation on IBM Cloud

4 min read - New client specials: Get up to 50% off when you commit to a 1- or 3-year term contract on new VCF-as-a-Service offerings, plus an additional value of up to USD 200K in credits through 30 June 2025 when you migrate your VMware workloads to IBM Cloud®.1 Low starting prices: On-demand VCF-as-a-Service deployments begin under USD 200 per month.2 The IBM Cloud benefit: See the potential for a 201%3 return on investment (ROI) over 3 years with reduced downtime, cost and…

24 IBM offerings winning TrustRadius 2024 Top Rated Awards

2 min read - TrustRadius is a buyer intelligence platform for business technology. Comprehensive product information, in-depth customer insights and peer conversations enable buyers to make confident decisions. “Earning a Top Rated Award means the vendor has excellent customer satisfaction and proven credibility. It’s based entirely on reviews and customer sentiment,” said Becky Susko, TrustRadius, Marketing Program Manager of Awards. Top Rated Awards have to be earned: Gain 10+ new reviews in the past 12 months Earn a trScore of 7.5 or higher from…

IBM Tech Now: April 8, 2024

< 1 min read - ​Welcome IBM Tech Now, our video web series featuring the latest and greatest news and announcements in the world of technology. Make sure you subscribe to our YouTube channel to be notified every time a new IBM Tech Now video is published. IBM Tech Now: Episode 96 On this episode, we're covering the following topics: IBM Cloud Logs A collaboration with IBM watsonx.ai and Anaconda IBM offerings in the G2 Spring Reports Stay plugged in You can check out the…

IBM Newsletters

Get our newsletters and topic updates that deliver the latest thought leadership and insights on emerging trends.
Subscribe now More newsletters