# Restore projects

**URL:** <https://discourse.nodered.org/t/restore-projects/22979>\
**Category:** General\
**Created:** [11 March 2020 14:42 UTC](https://discourse.nodered.org/t/restore-projects/22979 "2020-03-11T14:42:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvklink](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@pvklink](https://discourse.nodered.org/u/pvklink)\
**Post date:** [11 March 2020 14:42 UTC](https://discourse.nodered.org/t/restore-projects/22979/1 "2020-03-11T14:42:50Z")

</div>

Hi,

I just installed a new rpi 4b with a fresh copy of the latest node-red on the latest buster.  
I copied (filecopy) the project folders from my old rpi3b but thats not enough to get the new enviroment fully operational.

I have 2 project with both two branches. What is the easiest way to get these working in my new enviroment, as i told i already copied the folders, cred files etc. and nodered works ok, but is still empty..

i dont use the github part of the projects, only local...

---

<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:** [11 March 2020 16:26 UTC](https://discourse.nodered.org/t/restore-projects/22979/2 "2020-03-11T16:26:18Z")

</div>

Look in `~/.node-red/.config.json` for the `projects` section and copy over the entries for the projects you want to migrate.

---

<div class="post-metadata">

**Author:** ![pvklink](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@pvklink](https://discourse.nodered.org/u/pvklink)\
**Post date:** [11 March 2020 16:58 UTC](https://discourse.nodered.org/t/restore-projects/22979/3 "2020-03-11T16:58:03Z")

</div>

Ok, so i have to cut and paste parts like below from the source `.config.json` to the new target `.config.json`?

,  
"projects": {  
"projects": {  
"beheeromgeving": {  
"credentialSecret": "XXXXX"  
}  
},  
"activeProject": "beheeromgeving"  
}

---

<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:** [11 March 2020 16:59 UTC](https://discourse.nodered.org/t/restore-projects/22979/4 "2020-03-11T16:59:27Z")

</div>

> [@pvklink](#):
>
> Ok, so i have to cut and paste parts like below from the source `.config.json` to the new target `.config.json` ?

Yes. That is the config that Node-RED uses to know projects you have locally. Copy it over and restart NR.

---

<div class="post-metadata">

**Author:** ![pvklink](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@pvklink](https://discourse.nodered.org/u/pvklink)\
**Post date:** [11 March 2020 17:02 UTC](https://discourse.nodered.org/t/restore-projects/22979/5 "2020-03-11T17:02:51Z")

</div>

Ok, great!  
Another thing i did wrong, i imported an actual json file, but because off the missing nodes, the dashboard is gone, even after installing missing nodes. So i want to undo the import.

Do i have to manually delete all the flows, or is there are easier wayl like reset a project json file or something like that?  
i think i have to put a `[]` in the project json file, but i am not sure...

---

<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:** [11 March 2020 17:17 UTC](https://discourse.nodered.org/t/restore-projects/22979/6 "2020-03-11T17:17:24Z")

</div>

If you want to delete everything, delete the flow file and restart NR. It will get recreated the next time you deploy.

---

<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:** [25 March 2020 17:17 UTC](https://discourse.nodered.org/t/restore-projects/22979/7 "2020-03-25T17:17:32Z")

</div>

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