# Multiple Node-Red, with Multiple Global Storage

**URL:** <https://discourse.nodered.org/t/multiple-node-red-with-multiple-global-storage/21947>\
**Category:** General\
**Created:** [18 February 2020 21:59 UTC](https://discourse.nodered.org/t/multiple-node-red-with-multiple-global-storage/21947 "2020-02-18T21:59:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spyder0552](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/spyder0552/32/14035_2.png) [@spyder0552](https://discourse.nodered.org/u/spyder0552)\
**Post date:** [18 February 2020 21:59 UTC](https://discourse.nodered.org/t/multiple-node-red-with-multiple-global-storage/21947/1 "2020-02-18T21:59:35Z")

</div>

So I have a unique situation in that I run numerous instances of Node-Red (I can't change this). I also need to use global variables with the local file system in case the server reboots (which it does once a week).

So, is there a way in the settings to specify different folders so that each instance i have running will use a different storage location for their global files.

Any examples would be awesome.

---

<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:** [18 February 2020 22:14 UTC](https://discourse.nodered.org/t/multiple-node-red-with-multiple-global-storage/21947/2 "2020-02-18T22:14:51Z")

</div>

You can specify the location to store the context in each instances settings.js  
[https://nodered.org/docs/api/context/store/localfilesystem](https://nodered.org/docs/api/context/store/localfilesystem)

---

<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:** [18 February 2020 22:17 UTC](https://discourse.nodered.org/t/multiple-node-red-with-multiple-global-storage/21947/3 "2020-02-18T22:17:11Z")

</div>

On the command line you can specify the location of the user directory (default `~/.node-red`) using the `-u` option. This lets you give each instance its own directory for settings, flow files, context etc.

---

<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:** [3 March 2020 22:17 UTC](https://discourse.nodered.org/t/multiple-node-red-with-multiple-global-storage/21947/4 "2020-03-03T22:17:13Z")

</div>

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