# Unable To Copy Flow For Backup

**URL:** <https://discourse.nodered.org/t/unable-to-copy-flow-for-backup/70927>\
**Category:** General\
**Created:** [20 November 2022 15:49 UTC](https://discourse.nodered.org/t/unable-to-copy-flow-for-backup/70927 "2022-11-20T15:49:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Randy](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Randy](https://discourse.nodered.org/u/Randy)\
**Post date:** [20 November 2022 15:49 UTC](https://discourse.nodered.org/t/unable-to-copy-flow-for-backup/70927/1 "2022-11-20T15:49:39Z")

</div>

Running version 2.1.5 and trying to copy a flow for safe keeping by pasting to Notepad.

I click on one node to highlight then CTRL-A to highlight all nodes. Go to Export where all the nodes highlighted are listed. Click Copy to clipboard but the normal message at the top of the screen stating "copying X number of nodes" doesn't appear. Doing a CTRL-V in Notepad pastes nothing.

I've restarted my Windows machine and the RPi running the flow. What am I missing?

---

<div class="post-metadata">

**Author:** ![Rgrove](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@Rgrove](https://discourse.nodered.org/u/Rgrove)\
**Post date:** [23 November 2022 17:07 UTC](https://discourse.nodered.org/t/unable-to-copy-flow-for-backup/70927/2 "2022-11-23T17:07:51Z")

</div>

When I backup a flow to notepad, I usually go to "All Flows", then "JSON", and copy to clipboard.

Have you tried that? The problem might be more structural, but that might be a workaround.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a244f76599bb12f86195a7f89090a1b5d7421670.png)

---

<div class="post-metadata">

**Author:** ![Randy](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Randy](https://discourse.nodered.org/u/Randy)\
**Post date:** [24 November 2022 00:34 UTC](https://discourse.nodered.org/t/unable-to-copy-flow-for-backup/70927/3 "2022-11-24T00:34:17Z")

</div>

I tried that and no success.  
But I don't even get any type of notice at the top of the screen when I Export. Using your method or anything else I have tried. The notice normally reports X number of nodes exported. This is what happens on my other RPi's running NR but not this one.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [24 November 2022 07:14 UTC](https://discourse.nodered.org/t/unable-to-copy-flow-for-backup/70927/4 "2022-11-24T07:14:21Z")

</div>

Which browser and version are you running?  
Can you try a different browser?  
If it still fails then open the developer console in your browser and refresh the page and look for errors. Then try the export and again look for errors.

What version of nodejs are you using?

---

<div class="post-metadata">

**Author:** ![Randy](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Randy](https://discourse.nodered.org/u/Randy)\
**Post date:** [24 November 2022 21:23 UTC](https://discourse.nodered.org/t/unable-to-copy-flow-for-backup/70927/5 "2022-11-24T21:23:04Z")

</div>

Version 14.18.3 This is a RPi that runs a flow for my driveway photobeam detectors. It's been running without incident for around 4 years. But I wanted to be sure I had a backup when the SD card fails.

I was able to finally Download the json code which should be fine. All my other RPi flows Export to a text file and display a successful Export at the top of the screen except this one.

Anyway, successful backup file finally saved. Thanks!!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [24 November 2022 21:38 UTC](https://discourse.nodered.org/t/unable-to-copy-flow-for-backup/70927/6 "2022-11-24T21:38:03Z")

</div>

> [@Randy](#):
>
> But I wanted to be sure I had a backup when the SD card fails.

If you want a backup then simply backup the whole of the .node-red folder except the node\_modules folder. That should not be backed up as it contains the built versions of nodes, and if you restore it to a different architecture or OS version, or different major nodejs version then it might not be valid.  
If you need to restore the flows then replace the .node-red directory, go into it and run  
`npm install`  
which will rebuild the node\_modules folder.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 January 2023 21:38 UTC](https://discourse.nodered.org/t/unable-to-copy-flow-for-backup/70927/7 "2023-01-23T21:38:49Z")

</div>

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