Restoring a newer flow over an old one

Edit: suggested topics appear to have am answer that didn't come up in a search earlier.

I had to restore a VM running Node-Red, and it has an old version of my flows.

Upon trying to import the current version of flows, I get the option to not import or import copies. There are hundreds of flows and dashboard elements, so copies would be a very bad thing...

How can I import the JSON text and have it replace everything that's a duplicate?

image

Why not just overwrite the flows file with the new one then ?

I didn't have the flows file, just the exported JSON text. I have no idea if the contents are identical, but I don't want to break any more than has already been broken...

  1. stop node-red
  2. go to your .node-red folder
  3. look for flows.json rename it to old flows.json as a backup
  4. startup NR and then import the exported file.

That should let you import the file with no duplicates.

1 Like