# Export/Import Security Credentials

**URL:** <https://discourse.nodered.org/t/export-import-security-credentials/3637>\
**Category:** Feature Requests\
**Created:** [2 October 2018 20:43 UTC](https://discourse.nodered.org/t/export-import-security-credentials/3637 "2018-10-02T20:43:40Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![krzydec](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@krzydec](https://discourse.nodered.org/u/krzydec)\
**Post date:** [5 June 2020 10:50 UTC](https://discourse.nodered.org/t/export-import-security-credentials/3637/12 "2020-06-05T10:50:01Z")

</div>

Hello.

I found some tips here:  
[How to copy credentials in node-red flow?](https://discourse.nodered.org/t/how-to-copy-credentials-in-node-red-flow/23315/8)  
and here:  
[Node-RED User Directory](https://discourse.nodered.org/t/node-red-user-directory/25454)

My approach to solving this:

1. Create a copy of the `~/.node-red folder` on a network location
2. Modify `settings.js` file specifying `userDir:` to match location from step 1.
3. Modify `settings.js` file specifying `contextStorage` location:

```auto
contextStorage: {
        default: {
            module:"localfilesystem",
			config: {
			dir: "<path to your dir>", // eg. "/home/pi/store/"
			base: "<name of the directory for context>", // eg. "context" 
			}			
        },
    },

```

This allows to share flows and credentials between devices.

---

_[View the full topic](https://discourse.nodered.org/t/export-import-security-credentials/3637)._
