Automatic snapshots before upgrade?

Started by userfw, August 13, 2026, 11:10:53 AM

Previous topic - Next topic
It would be useful the ability to trigger a snapshot creation upon launching the upgrade procedure.

I have to admit I'm not so diligent at remembering to do it every time, my fault, it always went well so far, but having an additional safety net would be beneficial.

August 13, 2026, 12:02:03 PM #1 Last Edit: August 13, 2026, 12:12:00 PM by franco
Yes and no. Automatic snapshots drain your disk space and prevent you from doing proper upgrades if your disk is "full".

We can potentially add these features but they should come with elaborate retention policy option and automatic cleanups, which all can still not do what the user expects. It's not very appealing work.

freebsd-update does this by default and it has made two of our build servers unable to build without us knowing what's wrong.  It's not a great experience.


Cheers,
Franco

Quote from: franco on August 13, 2026, 12:02:03 PMfreebsd-update does this by default and it has made two of our build servers unable to build without us knowing what's wrong.

I hate it when it does that. Did I mention that I hate "magic under the hood", once or twice? ;-)
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I vaguely remember it.  :)


Cheers,
Franco

How about an option to enable automatic snapshots without cleanups for those that accept the responsibility to delete old snapshots themselves?

Disabled by default, with a scary note about storage consumption. Maybe with an option to keep the last n snapshots.

People ignore it and post here anyway.  It's similar to binding the web GUI to specific interfaces.


Cheers,
Franco

Quote from: franco on August 13, 2026, 02:23:00 PMPeople ignore it and post here anyway.  It's similar to binding the web GUI to specific interfaces.


Cheers,
Franco

Firstly, I absolutely love Opnsense, and have used it for many years now. Thank you so much for such an amazing project.

Secondly, I completely understand your hesitancy to implement features like this because so many people fail to RTFM, or due any bit of troubleshooting on their own, and then you suffer with the endless questions... That said, I would love to see this feature as well (taking full responsibility for my own snapshot management, cleanup, etc).

Thanks again!

Just how big are people's configurations and snapshots?

My system has a 256GB NVMe drive that was the very first NVMe I ever bought, an Intel 600P back in 2017.  The Dashboard reports I'm using 2.8GB of it, which is 1%.

I don't know how much work the devs would be prepared to do but for the the ideal would be to have both, the potential problem and potential cure.
Optionally enable autosnapshot and a utility to reclaim space by retention policy. That policy would be the user's responsibility to adapt adequately to their storage.
My OPN is a VM with 36 GB of storage. Used capacity is 12 % , currently with 5 BEs but that is df accounting which is incorrect for zfs and what the dashboard shows.
I suspect the same is true for you if you have snapshots an look only at the dashboard.

I find it is not a lack of automatic snapshots which affects me in any way but the fact I have to go to two screens.

An update is notified here, I go to System/Snapshots, copy the working config then delete the one prior (given I know I have a working config), then return to the Firmware screen to Check Updates. For me, it would be nice if Snapshots were a tab under Firmware, and perhaps a presented option (default off, on being a transient state) for people who simply press the Check for Updates on the Dashboard. I would not expect any automation of creation, naming, or deletion, simply faster, more convenient, access.
Deciso DEC697

Quote from: userfw on August 13, 2026, 02:19:40 PMDisabled by default, with a scary note about storage consumption. Maybe with an option to keep the last n snapshots.

Where's the option to enable automatic Snapshots for updates? My mSATA drive is quite big so the lack of space don't really concern me that much in a grand scheme of things.

Quote from: BrokenOnion on <strong>Today</strong> at 11:11:39 AMWhere's the option to enable automatic Snapshots for updates? My mSATA drive is quite big so the lack of space don't really concern me that much in a grand scheme of things.
That was only a suggestion of the user if such a feature would be added.

No such feature exists right now.
Deciso DEC740