# How to move a complete nodered-project

**URL:** https://discourse.nodered.org/t/how-to-move-a-complete-nodered-project/83289
**Category:** General
**Created:** [29 November 2023 16:08 UTC](https://discourse.nodered.org/t/how-to-move-a-complete-nodered-project/83289 "2023-11-29T16:08:12Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![jsail](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsail/32/20176_2.png) [@jsail](https://discourse.nodered.org/u/jsail)
#### Post date: [29 November 2023 16:08 UTC](https://discourse.nodered.org/t/how-to-move-a-complete-nodered-project/83289/1 "2023-11-29T16:08:12Z")

</div>

How to move a complete nodered-project include sqlite DB and credentials to a new server (raspi).

---

<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: [29 November 2023 16:52 UTC](https://discourse.nodered.org/t/how-to-move-a-complete-nodered-project/83289/2 "2023-11-29T16:52:29Z")

</div>

Assuming you installed using the [recommended script](https://nodered.org/docs/getting-started/raspberrypi) then copy the whole .node-red folder across, except for the node\_modules folder, then go into the .node-red folder and run  
`npm install`  
to install any extra nodes needed. Then restart node-red

---

<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: [29 November 2023 16:53 UTC](https://discourse.nodered.org/t/how-to-move-a-complete-nodered-project/83289/3 "2023-11-29T16:53:27Z")

</div>

That won't move the db itself of course unless the db file is in the .node-red folder. If it isn't then you will have to copy that file too.

---

<div class="post-metadata">

### Author: ![jsail](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsail/32/20176_2.png) [@jsail](https://discourse.nodered.org/u/jsail)
#### Post date: [1 December 2023 14:50 UTC](https://discourse.nodered.org/t/how-to-move-a-complete-nodered-project/83289/4 "2023-12-01T14:50:16Z")

</div>

Thank you Colin, this Part is now working; the Database was in the home-Folder. It was also. I had also to install MQTT...

But the Gmail-Account is not working anymore. The App-Key needs now 2 factor Auth...  
I check this in this forum...

---

<div class="post-metadata">

### Author: ![jsail](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsail/32/20176_2.png) [@jsail](https://discourse.nodered.org/u/jsail)
#### Post date: [6 December 2023 11:11 UTC](https://discourse.nodered.org/t/how-to-move-a-complete-nodered-project/83289/5 "2023-12-06T11:11:19Z")

</div>

Is it possible to copy the files fom .node-red inclusive credentials?

---

<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: [6 December 2023 11:29 UTC](https://discourse.nodered.org/t/how-to-move-a-complete-nodered-project/83289/6 "2023-12-06T11:29:12Z")

</div>

Yes, the technique I described earlier should do that, unless you are setting your credentialSecret using an environment variable or other method outside the .node-red folder.

---

<div class="post-metadata">

### Author: ![jsail](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsail/32/20176_2.png) [@jsail](https://discourse.nodered.org/u/jsail)
#### Post date: [6 December 2023 14:00 UTC](https://discourse.nodered.org/t/how-to-move-a-complete-nodered-project/83289/7 "2023-12-06T14:00:07Z")

</div>

I checked the Dokumentation. In the File [settings.js] I found [credentialSecret: "secred-key"]. This line is comented out.  
Would it be here to set this the key that takes by moving the credentials to the new server?  
Can I set it now or ist it to late?

---

<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: [6 December 2023 14:34 UTC](https://discourse.nodered.org/t/how-to-move-a-complete-nodered-project/83289/8 "2023-12-06T14:34:20Z")

</div>

Since you have not set it explicitly, node-red will have created one for you, which is stored in one of the .config files I think. If you copy the whole .node-red folder (except node\_modules) the secret will be copied too.

---

<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: [6 December 2023 14:35 UTC](https://discourse.nodered.org/t/how-to-move-a-complete-nodered-project/83289/9 "2023-12-06T14:35:56Z")

</div>

But yes, you can set it yourself now if you wish (that stops the warning on startup). After doing that you will have to re-enter all the credentials, as it will not be able to read the old credentials file any more.

---

<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: [26 August 2025 16:24 UTC](https://discourse.nodered.org/t/how-to-move-a-complete-nodered-project/83289/10 "2025-08-26T16:24:24Z")

</div>

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