Since migrating one of my lxd 5.x hosts to an Incus host, and spinning up a new Incus host VM I notice my snapshots are no longer rotating on the schedule.
I have checked the instance options for the snapshots.expiry/pattern/schedule and all looks normal. I did change the pattern a bit from the lxd options just to see if that was the issue.
Here is what is set on a test instance just to test snapshot creation/expiry:
snapshots.expiry: 4H
snapshots.pattern: snapshot-{{ creation_date|date:2006-01-02 }}-%d
snapshots.schedule: 0 */2 * * *
Options on the profiles I use:
snapshots.expiry: 4H
snapshots.pattern: snapshot-{{creation_date.Format(20060102)}}-%d
snapshots.schedule: 0 */2 * * *
Some of the commands used (if this matters?):
incus config set <instance_name> snapshots.pattern 'snapshot-{{ creation_date|date:'2006-01-02' }}-%d'
incus config set <instance_name> snapshots.expiry "4H"
incus config set <instance_name> snapshots.schedule "0 */2 * * *"
For reference here are the options on the lxd host that snapshots work fine still:
snapshots.expiry: 4H
snapshots.pattern: snapshot-{{creation_date.Format("20060102")}}-%d
snapshots.schedule: 0 */2 * * *
On Incus I can manually snapshot instances fine, and remove them. So I am stumped why they don’t just roll over ever 2 hours as they did before. I am probably missing a config setting or option. Or the syntax may have changed, since most these settings were just migrated over from the older lxd hosts/profiles. If needed I can share more information.
If anyone has experienced this, let me know the fix. In the meantime I will keep playing with settings on a test instance.
Running Incus 6.0.1 on Debian 12 VM.
Thanks!