Lxd-snapper v1.2 released: `snapshots.schedule` on steroids!

Hi,

lxd-snapper is a tool that takes snapshots.schedule to the next level - it’s a fancy wrapper for lxc snapshot & lxc delete that supports rich, Borg-style retention policies and hooks:

hooks:
  on-snapshot-created: 'zfs send ...'
  on-snapshot-deleted: 'ssh ... zfs destroy ...'

policies:
  all-containers:
    keep-hourly: 6
    keep-daily: 5
    keep-weekly: 4
    keep-monthly: 3
    keep-yearly: 2

  storages:
    included-instances: ['nextcloud']
    keep-last: 60

Just prepare a snapshotting policy, setup a cronjob, and enjoy your containers!

2 Likes