# Problem moving Flows between a Pi & Winbox

**URL:** <https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894>\
**Category:** General\
**Created:** [13 November 2020 22:04 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894 "2020-11-13T22:04:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![RASelkirk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/raselkirk/32/57425_2.png) [@RASelkirk](https://discourse.nodered.org/u/RASelkirk)\
**Post date:** [13 November 2020 22:04 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/1 "2020-11-13T22:04:08Z")

</div>

Hi All,

I've got N-R on my pi but am actively building on my Winbox. So far, I've "saved" a half-dozen flows/nodes while on the Winbox, but when I try and import one, there are only two showing and both if those are on the pi. So, where are the files saved on the Winbox? I'm guessing I need to eventually transfer them to the pi, but gotta find them first...

Russ

---

<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:** [13 November 2020 22:23 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/2 "2020-11-13T22:23:54Z")

</div>

> [@RASelkirk](#):
>
> , I've "saved" a half-dozen flows/nodes while on the Winbox

What do you mean by saving flows/nodes?

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [13 November 2020 22:26 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/3 "2020-11-13T22:26:10Z")

</div>

I don't fully understand your description of the problem... but  
Are you trying to move some flows from the Winbox to a Pi?

If so, are you exporting the flows from the Winbox, and then importing them into the pi, using the node-RED interface?

PS - a 'flow' is a collection of nodes, whilst a 'node' is just a single node.

---

<div class="post-metadata">

**Author:** ![RASelkirk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/raselkirk/32/57425_2.png) [@RASelkirk](https://discourse.nodered.org/u/RASelkirk)\
**Post date:** [13 November 2020 22:54 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/4 "2020-11-13T22:54:07Z")

</div>

Export -\> Library. When I click on "Library", it opens a folder called local. Both boxes have the same two (older) files so I must have, _at one time_, been able to do this.

So this week:

I've exported some nodes on the Winbox. I think.

I'm simply trying to find where these "exports" went. They are not on my Winbox and I don't have enough "Raspbian" knowledge to know how to find them - if - they ended up on the pi.

I'd like to import them back into the Winbox, but they are not in the import/export list of either machine.

That said, is there a method to synch these exports between machines?

Russ

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [13 November 2020 23:10 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/5 "2020-11-13T23:10:02Z")

</div>

Now I am totally confused 😕  
Sorry Russ

---

<div class="post-metadata">

**Author:** ![RASelkirk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/raselkirk/32/57425_2.png) [@RASelkirk](https://discourse.nodered.org/u/RASelkirk)\
**Post date:** [13 November 2020 23:51 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/6 "2020-11-13T23:51:39Z")

</div>

OK, forget it. I just won't attempt to save anything from now on.

Russ

On second thought, I can export to clipboard, paste it into a text file, and save it that way. At least I'll have something.

---

<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:** [14 November 2020 07:19 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/7 "2020-11-14T07:19:02Z")

</div>

If you used Export \> Library They will be in the `lib` folder in your `.node-red` folder.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [14 November 2020 09:19 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/8 "2020-11-14T09:19:03Z")

</div>

If you export to lib on the windows machine, the flow will be saved on the windows file system.

When you import from lib on the pi, it will look on it's own file system not the windows file system

There is no connection between the two unless you copy them over.

If you open the node-red editor for both the windows box and the pi in your windows browser, side by side,  
you can simply export to tclipboard, change tab to the pi node-red editor, then import from clipboard. No files no fuss no muss.

---

<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:** [14 November 2020 09:48 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/9 "2020-11-14T09:48:35Z")

</div>

> [@Steve-Mcl](#):
>
> If you export to lib on the windows machine, the flow will be saved on the windows file system.

I have just tried it on Ubuntu and it goes to .node-red/lib/flows

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [14 November 2020 11:55 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/17 "2020-11-14T11:55:11Z")

</div>

Oops. Lets clear it up for anyone reading....

By default, the lib [folder] when running node-red on windows is `c:\users\username\.node-red\lib` where `username` is the user who fired up node-red

---

<div class="post-metadata">

**Author:** ![RASelkirk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/raselkirk/32/57425_2.png) [@RASelkirk](https://discourse.nodered.org/u/RASelkirk)\
**Post date:** [14 November 2020 13:58 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/22 "2020-11-14T13:58:14Z")

</div>

Steve,

I do not have any N-R files at that (Winbox) location, or any other location on my C:\ drive for that matter.

This may be the issue: I have N-R installed on my pi, which is located at my (very uncomfortable) office desk. I do NOT have N-R installed on my Winbox. I only access & edit the pi's N-R install from my Winbox browser - from my recliner in the living room. However, there are times when I use the pi's browser to edit because I need to physically see what the pi pins are doing on my breadboard. Occasionally I get a "merge" message because both browsers have made changes to the same install, but this hasn't been a problem. Later, I'll try an export from the pi's browser and make sure it saves to the pi folder.

I assumed exporting a node or flow would save to the pi folder (regardless of which machine's broswer is used) because the only install is on the pi, but things saved from the Winbox browser do not end up anywhere. No error messages either!

Russ

---

<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:** [14 November 2020 14:12 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/23 "2020-11-14T14:12:03Z")

</div>

> [@RASelkirk](#):
>
> I assumed exporting a node or flow would save to the pi folder (regardless of which machine's broswer is used) because the only install is on the pi, but things saved from the Winbox browser do not end up anywhere. No error messages either!

Where the browser is running is irrelevant. The files should be stored in ~/.node-red/lib/flows on the pi, unless your install on the pi is unusual.

---

<div class="post-metadata">

**Author:** ![RASelkirk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/raselkirk/32/57425_2.png) [@RASelkirk](https://discourse.nodered.org/u/RASelkirk)\
**Post date:** [14 November 2020 14:35 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/24 "2020-11-14T14:35:22Z")

</div>

N-R in the default location, where it was on the image-file initially installed on pi. There are two export files in the correct location, may have been exported from the pi browser weeks ago, don't remember. I do know that nothing exported from the Winbox makes it anywhere (that I can find). Can you recommend a file search tool for Raspbian? I don't know squat about linux...

Russ

---

<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:** [14 November 2020 15:10 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/25 "2020-11-14T15:10:19Z")

</div>

Can you stop node-red and start it again in a terminal and post the resulting output here please. Copy/paste it and use the `</>` button at the top of the forum entry window when pasting it in. Check it shows the correct flows when you start it in the terminal to make sure it is running correctly.

---

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [14 November 2020 15:29 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/26 "2020-11-14T15:29:23Z")

</div>

Are you really just trying to duplicate your work on the win machine to the pi machine? If so, IMHO, I would use projects and github. This way you also have a backup up in the cloud and it is fairly easy to implement and use it. Nick just helped me do it. Here is a link to an article that he wrote describing the steps to set it up.

[https://knolleary.net/node-red-workshop-photobooth/part4/one-more-thing.html](https://knolleary.net/node-red-workshop-photobooth/part4/one-more-thing.html)

---

<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:** [14 November 2020 15:39 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/27 "2020-11-14T15:39:26Z")

</div>

> [@jmorris644](#):
>
> Are you really just trying to duplicate your work on the win machine to the pi machine?

The OP does not have node-red running on the Windows machine, only on the pi.

---

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [14 November 2020 15:46 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/28 "2020-11-14T15:46:44Z")

</div>

That is confusing. From a curiosity standpoint, how is he saving flows on the winbox? Or copying them to the clipboard?

---

<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:** [14 November 2020 15:54 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/29 "2020-11-14T15:54:22Z")

</div>

He/she isn't, he is using Export \> Library but then can't find them on the Win box or the pi.

---

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [14 November 2020 16:01 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/30 "2020-11-14T16:01:42Z")

</div>

> [@RASelkirk](#):
>
> On second thought, I can export to clipboard, paste it into a text file, and save it that way. At least I'll have something.

Granted it is confusing. I based my response on this part of one of his messages

"On second thought, I can export to clipboard, paste it into a text file, and save it that way. At least I'll have something."

No need to reply. He can use what I posted or just ignore it if it is not applicable.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [14 November 2020 16:42 UTC](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894/31 "2020-11-14T16:42:04Z")

</div>

So to be absolutely clear, you have just one node-RED server, which is running on a Pi.

If so, then again reading your first few posts, you are trying to export it's flows, and then import them again.

Can I ask, just so I understand your endgame, what is the purpose in importing the same flows to the same server that you've just exported them from?

[Next page](https://discourse.nodered.org/t/problem-moving-flows-between-a-pi-winbox/35894.md?page=2)
