Hilscher Community Forum
Ways to replace NetPi with/copy Config to new NetPi - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: Ways to replace NetPi with/copy Config to new NetPi (/thread-790.html)



Ways to replace NetPi with/copy Config to new NetPi - Dipro - December-7th-2021

Hi,
 
is there a possibility to make a recovery from the whole NetPi with all configurations, docker containers etc? What would be the best way to restore the NetPi to a previous configuration or how can a configuration be copied from one NetPi to another?


RE: Ways to replace NetPi with/copy Config to new NetPi - Armin@netPI - December-7th-2021

The easiest possibility is to make an SD card hard copy. This requires to opne netPI with its 4 screws, removing the SD card temporarily and makeing a copy with a tool like Win32DiskImager. The OS running on netPI does not include any backup/restore capability of the whole SD card ... so the hard copy is the only possibility I see.

One addiitiional remark: I feel the OS part is in my eyes not really worth it to make a backup from since ALL informations/knowledge are in the application container, or? So if you use the Docker Web UI of netPI and use the "save" container option of a stopped container then the whole container as it is is saved to a file exported over your web browser session that you can store outside netPI. Later you can deploy and run this container image again and you will have a 100% copy of it running as before. In case you have multiple containers you have to save them one after the other.

Thx
Armin


RE: Ways to replace NetPi with/copy Config to new NetPi - Armin@netPI - December-7th-2021

If you want to use your made SD card image with a second (backup) netPI ... then this is not so easy since each SD card contains a key file in the folder /nvd/ that fits exactly to the netPI it was in during production time. So once you made an SD card image copy of the original netPI then you have to replace this file in the image first with the one found on the second backup netPI. After replacing the file the SD card copy can be used with the second netPI.

Thx
Armin