# Moving the flows from windows to linux ubuntu machine

**URL:** <https://discourse.nodered.org/t/moving-the-flows-from-windows-to-linux-ubuntu-machine/77561>\
**Category:** General\
**Created:** [14 April 2023 09:22 UTC](https://discourse.nodered.org/t/moving-the-flows-from-windows-to-linux-ubuntu-machine/77561 "2023-04-14T09:22:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robertotarga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/robertotarga/32/16890_2.png) [@Robertotarga](https://discourse.nodered.org/u/Robertotarga)\
**Post date:** [14 April 2023 09:22 UTC](https://discourse.nodered.org/t/moving-the-flows-from-windows-to-linux-ubuntu-machine/77561/1 "2023-04-14T09:22:05Z")

</div>

Hi,  
I'm planning to move all my work from node-red v 3.0.2 in windows 11 pro to the same version on a ubuntu 22.04 virtual machine created with Hyper-V.  
Ubuntu NR is already installed and ready to import my ecosystem.

Which is the suggested strategy to move all my flows and imported nodes to the new machine?

I understand that the flows are in flows.json file and the nodes in node\_modules folder. Can I simply move this file and folder to the new machine or is there a better suggested procedure?

TIA

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [14 April 2023 09:29 UTC](https://discourse.nodered.org/t/moving-the-flows-from-windows-to-linux-ubuntu-machine/77561/2 "2023-04-14T09:29:21Z")

</div>

> [@Robertotarga](#):
>
> Can I simply move this file and folder to the new machine or is there a better suggested procedure?

I wouldn't move the folder, some Node Modules will use binary specific builds for the OS.  
its like running a \*nix binary on Windows - not going to work

Honestly, just export your flows in the editor from Windows, and import again in the editor in Ubuntu  
The editor will complain of missing modules, you just then install them via the palette manager.

You may need to provide credentials if any nodes requires them.

I should note: you can "rebuild" native modules - but sometimes it doesn't go to plan.  
I think for the smoothest transition, just use the export/import features of the Edittor, and take care of any missing module via the palette manager

---

<div class="post-metadata">

**Author:** ![cameo69](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cameo69/32/66593_2.png) [@cameo69](https://discourse.nodered.org/u/cameo69)\
**Post date:** [14 April 2023 09:51 UTC](https://discourse.nodered.org/t/moving-the-flows-from-windows-to-linux-ubuntu-machine/77561/3 "2023-04-14T09:51:23Z")

</div>

Have you looked into the projects of NR?  
I tried once to revert from a project that is on GitHub (private repo) and it worked very well.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [14 April 2023 10:06 UTC](https://discourse.nodered.org/t/moving-the-flows-from-windows-to-linux-ubuntu-machine/77561/4 "2023-04-14T10:06:04Z")

</div>

My Flows are also a Node RED project on a private Repo.  
Mainly to have a sound backup system, more than anything else. 😅

but does help, when I'm re-imaging my pi.

---

<div class="post-metadata">

**Author:** ![Robertotarga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/robertotarga/32/16890_2.png) [@Robertotarga](https://discourse.nodered.org/u/Robertotarga)\
**Post date:** [14 April 2023 10:20 UTC](https://discourse.nodered.org/t/moving-the-flows-from-windows-to-linux-ubuntu-machine/77561/5 "2023-04-14T10:20:29Z")

</div>

Hi Marcus,  
I will follow your wise suggestion. It will take more time, but it’s safer.

Thank you

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [14 April 2023 10:25 UTC](https://discourse.nodered.org/t/moving-the-flows-from-windows-to-linux-ubuntu-machine/77561/6 "2023-04-14T10:25:35Z")

</div>

> [@Robertotarga](#):
>
> Which is the suggested strategy to move all my flows and imported nodes to the new machine?

You can copy over the whole userDir folder EXCEPT the node\_modules folder. Don't copy that. For starters it tends to be enormous. More importantly, not all of the nodes will work.

Once you've copied over, use a command line:

```auto
cd ~/.node-red
npm install

```

That will finalise the install.

---

<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:** [13 June 2023 10:26 UTC](https://discourse.nodered.org/t/moving-the-flows-from-windows-to-linux-ubuntu-machine/77561/7 "2023-06-13T10:26:18Z")

</div>

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