Asking because my rsync application that I installed last week with
apk add --no-cache rsync
to sync the config to a remote raspberry pie with is no longer there, although the crontab.root jobs I did are still there. Puzzled to understand what happens to rsync…
the config folder is a mapped volume and persists across updates. The homeassistant docker container will be destroyed and recreated when you update so you can’t install stuff into hassio.
you could have a shell script calling rsync but in general, you need to make sure that command is available in the container. The easiest way I have found is to use Portainer and open a console in the container. If your command works there it will work in a script. Depending on how you installed hassio, you might be able to run other stuff on the host (eg I installed using a generic linux install so you can pretty much do anything and use cron etc. RPi - not possible with the HassOS images)
I installed hassio through the RaspberryPie hassio image so no easy access to the base OS. I guess I could copy rsync to the /config folder and run it from there…