# Store data variables after reboot

**URL:** <https://discourse.nodered.org/t/store-data-variables-after-reboot/80194>\
**Category:** General\
**Created:** [31 July 2023 18:20 UTC](https://discourse.nodered.org/t/store-data-variables-after-reboot/80194 "2023-07-31T18:20:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![denissanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/denissanga/32/48346_2.png) [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Post date:** [31 July 2023 18:20 UTC](https://discourse.nodered.org/t/store-data-variables-after-reboot/80194/1 "2023-07-31T18:20:00Z")

</div>

Hi all I would like store data and variable in node red because until now all variable are lost after reboot. Can some one help me? Many thanks

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [31 July 2023 18:32 UTC](https://discourse.nodered.org/t/store-data-variables-after-reboot/80194/2 "2023-07-31T18:32:15Z")

</div>

You store data in context storage or maybe a database.  
If you store data in context storage you have to set the storage to file rather than memory, as file will survive a restart.  
[https://nodered.org/docs/user-guide/context#context-stores](https://nodered.org/docs/user-guide/context#context-stores)

---

<div class="post-metadata">

**Author:** ![Billy\_C](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/billy_c/32/74647_2.png) [@Billy\_C](https://discourse.nodered.org/u/Billy_C)\
**Post date:** [6 August 2023 05:07 UTC](https://discourse.nodered.org/t/store-data-variables-after-reboot/80194/3 "2023-08-06T05:07:25Z")

</div>

Not sure what hardware you are on but there might be prerequisites for this on the host. I’m not sure what the nodered document covers but might be helpful to know what kind system you are on incase there are specifics to that which aren’t covered typically.

---

<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:** [5 October 2023 05:08 UTC](https://discourse.nodered.org/t/store-data-variables-after-reboot/80194/4 "2023-10-05T05:08:07Z")

</div>

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