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

New 4th Gen Intel Xeon profiles and dynamic network bandwidth shake up the IBM Cloud Bare Metal Servers for VPC portfolio

3 min read - We’re pleased to announce that 4th Gen Intel® Xeon® processors on IBM Cloud Bare Metal Servers for VPC are available on IBM Cloud. Our customers can now provision Intel’s newest microarchitecture inside their own virtual private cloud and gain access to a host of performance enhancements, including more core-to-memory ratios (21 new server profiles/) and dynamic network bandwidth exclusive to IBM Cloud VPC. For anyone keeping track, that’s 3x as many provisioning options than our current 2nd Gen Intel Xeon…

IBM and AWS: Driving the next-gen SAP transformation  

5 min read - SAP is the epicenter of business operations for companies around the world. In fact, 77% of the world’s transactional revenue touches an SAP system, and 92% of the Forbes Global 2000 companies use SAP, according to Frost & Sullivan.   Global challenges related to profitability, supply chains and sustainability are creating economic uncertainty for many companies. Modernizing SAP systems and embracing cloud environments like AWS can provide these companies with a real-time view of their business operations, fueling growth and increasing…

Experience unmatched data resilience with IBM Storage Defender and IBM Storage FlashSystem

3 min read - IBM Storage Defender is a purpose-built end-to-end data resilience solution designed to help businesses rapidly restart essential operations in the event of a cyberattack or other unforeseen events. It simplifies and orchestrates business recovery processes by providing a comprehensive view of data resilience and recoverability across primary and  auxiliary storage in a single interface. IBM Storage Defender deploys AI-powered sensors to quickly detect threats and anomalies. Signals from all available sensors are aggregated by IBM Storage Defender, whether they come…

IBM Newsletters

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