# Backup NR on failing RPi Linux installation

**URL:** <https://discourse.nodered.org/t/backup-nr-on-failing-rpi-linux-installation/94213>\
**Category:** General\
**Created:** [28 December 2024 00:07 UTC](https://discourse.nodered.org/t/backup-nr-on-failing-rpi-linux-installation/94213 "2024-12-28T00:07:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkenobi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bkenobi/32/59825_2.png) [@bkenobi](https://discourse.nodered.org/u/bkenobi)\
**Post date:** [28 December 2024 00:07 UTC](https://discourse.nodered.org/t/backup-nr-on-failing-rpi-linux-installation/94213/1 "2024-12-28T00:07:26Z")

</div>

I have a NR setup on a RPi4 running Raspbian. The flows have been backed up at some point and are probably ok, but I was wondering if I can backup the .node-red path in my home directory and then put it in a fresh RPi image in case I'm missing anything left off the last backup. I don't know that the SD is still usable so I'm wondering if that would help if I'm able to save the files or if it's a waste of time.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [28 December 2024 02:03 UTC](https://discourse.nodered.org/t/backup-nr-on-failing-rpi-linux-installation/94213/2 "2024-12-28T02:03:52Z")

</div>

Probably the easiest way is if you have a USB card reader.

Install Node-red on the new SD card.  
Mount the old SD card and copy the required files over (everything in `~/.node-red` except any directories `node_modules*` )  
`cd .node-red`  
`npm install`  
Restart Node-red

---

<div class="post-metadata">

**Author:** ![bkenobi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bkenobi/32/59825_2.png) [@bkenobi](https://discourse.nodered.org/u/bkenobi)\
**Post date:** [29 December 2024 18:27 UTC](https://discourse.nodered.org/t/backup-nr-on-failing-rpi-linux-installation/94213/3 "2024-12-29T18:27:00Z")

</div>

ok I'll give this a try. Thanks!

---

<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:** [29 March 2025 18:27 UTC](https://discourse.nodered.org/t/backup-nr-on-failing-rpi-linux-installation/94213/4 "2025-03-29T18:27:00Z")

</div>

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