I have the following problem - we are distributing Raspberry Pi devices with our some software installed into it to our clients. Occasionally we need to update the current state of their OS (for example to install additional packages that are needed for our software to run) we do it in the form of
Shell Scripts, i.e., our application on Raspberry device downloads a new shell script available and update the current state of the Rasperry OS. However sometimes something may go wrong, let's say our shell script fails, half way through its completion, for some reason, it would be nice to be able to revert this script somehow. The best solution would be to have some kind of a
Restore Point like windows does, to just go back to it, if needed. Of course another obvious solution is asking users to remove an SD card and take an image every now and then and then rewrite that image to Raspberry when needed, but we won't to make our system fully automatic, without any user interaction.
Are there any automatic
Restore Point alternatives for Raspberry Pi?