# Q about backing up workspace

**URL:** https://discourse.nodered.org/t/q-about-backing-up-workspace/35879
**Category:** General
**Created:** [13 November 2020 16:34 UTC](https://discourse.nodered.org/t/q-about-backing-up-workspace/35879 "2020-11-13T16:34:06Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [13 November 2020 16:41 UTC](https://discourse.nodered.org/t/q-about-backing-up-workspace/35879/2 "2020-11-13T16:41:16Z")

</div>

If you have access the device running Node-RED, then a minimal backup would be to copy the files:

- `~/.node-red/package.json`
- your flow and credential files (check the Node-RED startup log to get the exact filename)
- your settings file: `~/.node-red/settings.js`

If you have not set the `credentialSecret` property in your settings file (there's a big message in the log on startup telling you to if you haven't), then you'll also need to copy the value of `_credentialSecret` out of `~/.config.runtime.json` (or `.config.json` if on Node-RED 1.1 or earlier).

For the majority of cases, that would get you everything you needed to restore your flows elsewhere.

If you don't have access to the device running Node-RED, then you will be able to export your flows as JSON from the editor, but it will _not_ include an credentials. You'll also have to take a manual record of the extra nodes you have installed.

---

_[View the full topic](https://discourse.nodered.org/t/q-about-backing-up-workspace/35879)._
