Automating check home assistant configuration

I’d like to create an automation the does the following things:

  1. When a new update is available, it runs the Home Assistant Configuration.
  2. If it comes back okay, take a full snapshot.
  3. Send me a notification that a new update is available.

I have the notification working, but I’m stuck on 1 and 2. Is it possible to automate this using a script?

Thanks in advance

What’s wrong with just taking a snapshot on a set basis? I use the Hass.io Google Drive Backup addon, and it takes a snapshot every 7 days or however often you want. I’ve it set to keep only 4 snapshots, but you can tell it how many you want. Just seems to me to be an easier way to do it. That might take care of number 2 for you. Can’t help with the rest sorry to say.

Thank you! I’ll check out that addon.