# Set up raspberry pi

**URL:** <https://discourse.nodered.org/t/set-up-raspberry-pi/53188>\
**Category:** General\
**Created:** [3 November 2021 21:01 UTC](https://discourse.nodered.org/t/set-up-raspberry-pi/53188 "2021-11-03T21:01:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davenrea](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/davenrea/32/32842_2.png) [@davenrea](https://discourse.nodered.org/u/davenrea)\
**Post date:** [3 November 2021 21:01 UTC](https://discourse.nodered.org/t/set-up-raspberry-pi/53188/1 "2021-11-03T21:01:51Z")

</div>

Hi All

I backup my flows on 4 Pi's via email everynight, I would like to be able to have a single image on an SD card with an initial address ie 192,168.1.1 and port 1880. When I go to that address i want to be able to import the saved flow and in the flow there is someting that sets the ip, port and host name of the pi once node red start and reboots the pi if the ip address was changed.

Thanks for any thoughts on this

---

<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:** [3 November 2021 21:21 UTC](https://discourse.nodered.org/t/set-up-raspberry-pi/53188/2 "2021-11-03T21:21:31Z")

</div>

I suggest a simple bash script to copy the flows, and setup the network. It will be tricky to do in node-red as it will need root privilege. With a bash script you can ssh into the device and run the script.

---

<div class="post-metadata">

**Author:** ![davenrea](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/davenrea/32/32842_2.png) [@davenrea](https://discourse.nodered.org/u/davenrea)\
**Post date:** [3 November 2021 21:27 UTC](https://discourse.nodered.org/t/set-up-raspberry-pi/53188/3 "2021-11-03T21:27:03Z")

</div>

Thanks for the reply, just happen to be reading how to do a bash script. I will see what i can do, so far looks a bit complicated!!

---

<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:** [3 November 2021 21:42 UTC](https://discourse.nodered.org/t/set-up-raspberry-pi/53188/4 "2021-11-03T21:42:32Z")

</div>

It will be time well spent, it is a useful skill to be able to write simple scripts.

---

<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:** [2 January 2022 21:43 UTC](https://discourse.nodered.org/t/set-up-raspberry-pi/53188/5 "2022-01-02T21:43:16Z")

</div>

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