Possibility to exclude manual snapshots from snapshots.expiry

I have a setup where snapshots.expiry and snapshots.schedule is set for a few containers, which works as expected and cleans up scheduled snapshots after they expire.

I’m wondering if it’s possible to somehow exclude snapshots taken manually from this cleanup schedule, i.e. if I do something like:

lxc snapshot [container] my-snapshot

Since this is a “non-scheduled” snapshot, could it be identified as such and therefore be configured to be excluded from the expiry?

You can do this using:

lxc snapshot --no-expiry


lxc snapshot --help
1 Like