I use the excellent OL3 on a couple of PiAware boxes in the UK. I also have some tweaks to various files, some scripts and some cron jobs. These PiAware boxes are using PiAware SD card images.
OL3 is a complete replacement for
/usr/share/dump1090-fa/html. I rename the standard one as
If a new version of PiAware comes out and I use “Upgrade and restart PiAware” from the stats page, the OL3 html is wiped out with the standard html from the new PiAware version and the various tweaks are also lost. That’s no problem and is what I would expect.
So I’d like to store backups of the OL3 html (a point in time tar.gz), the scripts and notes about the tweaks somewhere safe on the SD card. That way it’s easy to quickly redeploy them from the Pi locally after such an upgrade.
I’d like to know please, what gets wiped or overwritten when doing this kind of upgrade, or, conversely, where is a safe place to store backups and notes? Is
/home/pi left alone? What about
/opt? Is crontab rewritten?
I searched for a while trying to find if this had been covered but didn’t find anything so any definitive info would be appreciated.