# Where are the node red projects stored?

**URL:** https://discourse.nodered.org/t/where-are-the-node-red-projects-stored/53997
**Category:** General
**Created:** [19 November 2021 13:34 UTC](https://discourse.nodered.org/t/where-are-the-node-red-projects-stored/53997 "2021-11-19T13:34:48Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![traderjoe](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@traderjoe](https://discourse.nodered.org/u/traderjoe)
#### Post date: [19 November 2021 13:34 UTC](https://discourse.nodered.org/t/where-are-the-node-red-projects-stored/53997/1 "2021-11-19T13:34:48Z")

</div>

Is there a file location where the NR projects are stored? I want to copy it and save as a backup.

I messed up my Pi before backing it up. I'm unable to network into it. So now I have to hookup the SD card to my PC, and sift through the folders. But where is it stored?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [19 November 2021 13:36 UTC](https://discourse.nodered.org/t/where-are-the-node-red-projects-stored/53997/2 "2021-11-19T13:36:59Z")

</div>

All Node-RED data is stored under the `.node-red` directory in the user's home directory.

If you are using the Projects feature of Node-RED, the individual projects are stored under `~/.node-red/projects/`

You should also make sure you grab the hidden files `~/.node-red/.config.*.json`

---

<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: [19 November 2021 13:47 UTC](https://discourse.nodered.org/t/where-are-the-node-red-projects-stored/53997/3 "2021-11-19T13:47:23Z")

</div>

You don't need the node\_modules folder that you will find there though, that is very large, and is easily rebuilt after restoring the rest of the folder, by running `npm install` in that folder.

---

<div class="post-metadata">

### Author: ![traderjoe](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@traderjoe](https://discourse.nodered.org/u/traderjoe)
#### Post date: [19 November 2021 14:14 UTC](https://discourse.nodered.org/t/where-are-the-node-red-projects-stored/53997/4 "2021-11-19T14:14:37Z")

</div>

Thanks! I found a flows\_raspberrypi.json.

Normally if I work in NR, go to export flows, I can export the flow 1 at a time. I have 4 flows in my project.  
But here, it seems all the flows are combined into 1 json. And if I move that above file into a new build, I should get all my flows back? Provided all my modules are installed of course.

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [19 November 2021 14:26 UTC](https://discourse.nodered.org/t/where-are-the-node-red-projects-stored/53997/5 "2021-11-19T14:26:18Z")

</div>

If you have any nodes that store credentials then you will also need the `flows_raspberrypi_creds.json` and the `.config.*.json` files that Nick mentioned

---

<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: [19 November 2021 14:44 UTC](https://discourse.nodered.org/t/where-are-the-node-red-projects-stored/53997/6 "2021-11-19T14:44:03Z")

</div>

If you have installed any additional modules then also copying package.json and package-lock.json will avoid you having to re-install those one at a time, and if you have changed anything in settings.js then you would need that too, plus any static files and so on that you may have added. The safest thing is to transfer the whole of the .node-red folder except node\_modules and then run `npm install` to install any additional nodes you may have used.

---

<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: [15 December 2021 15:44 UTC](https://discourse.nodered.org/t/where-are-the-node-red-projects-stored/53997/7 "2021-12-15T15:44:21Z")

</div>

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