Implications of running 'image-backup' while NR is active? The 'image-backup' script is part of 'RonR-RPi-image-utils' (see github GitHub - seamusdemora/RonR-RPi-image-utils: tools to create & update a backup of a running RPiOS system to a raw image file · GitHub)
Using this script, the obvious question comes up... which services to stop and restart, before and after, image backup initiated.
Should I explicitly stop and start NR? Kinda wanted to use NR as a UI wrapper round this script, to have it monitor progress etc. But thought there might be something 'under the hood' of NR that might be 'dynamic' enough that image process would valid to capture it correctly?
Hi @Jibun-no-Kage,
The Node RED process /interaction is run in memory, and very little (if anything) uses Disc IO.
Unless you have constant Disc Based storage mechanisms at play - I don’t think you need to stop the Node RED process.
It might be worth checking if you have opted to write to disc for your context via the setting files, I don’t think you need to worry all that much.
I’m no expert at what happens internally, but on the surface, I don’t think much will be in the way., more so the need to stop Node RED.
Node-RED can trigger the backup, but if the job stops Node-RED it needs to run outside that process. Put the stop → backup → start sequence in a separate script or service, including restart handling when the backup fails.
Whether you need to stop it depends on what your flows write to disk. Check file-backed context, files and databases; memory-only context won't be captured by the image. On a test restore, check that those persistent values and files are usable.