Any way to automate updates with Snapshots?

Started by BrokenOnion, November 20, 2026, 11:37:25 PM

Previous topic - Next topic
Hi,

Are there any ways to automate creating snapshots by date as a title, activating it then doing a reboot to use the new snapshot then start any available updates, all of this done on a specific day of the week at a specific time?

I know there is Cron for scheduling and perhaps using Bash for the rest? Would this be feasible to script and implement into OPNsense? I would like to automate the update process so it's self maintained and I don't need to login into the firewall to kick off the update process.

Thanks,
BrokenOnion

Likely yes but if you look at the code behind a tool like sanoid, you'll realise that managing the snapshot is not trivial.
That's not even discussing the idea of auto updating without an admin eyes on the process.

Quote from: cookiemonster on <strong>Today</strong> at 12:15:45 AMLikely yes but if you look at the code behind a tool like sanoid, you'll realise that managing the snapshot is not trivial.
That's not even discussing the idea of auto updating without an admin eyes on the process.

Are there any scripts that you would recommend? I took a look online what Sanoid is but I could barely find anything, there were a few mentions about Zabix, ESXi but nothing for bare metal installation of OPNsense.