Longhorn supports recurring snapshot and backup for volumes. User only need to set when he/she wish to take the snapshot and/or backup, and how many snapshots/backups needs to be retains, then Longhorn will automatically create snapshot/backup for the user at that time, as long as the volume is attached to a node.
Users can setup recurring snapshot/backup via Longhorn UI, or Kubernetes StorageClass.
Set up recurring jobs using Longhorn UI
User can find the setting for the recurring snapshot and backup in the Volume Detail page.
Set up recurring jobs using StorageClass
Users can set field recurringJobs in StorageClass as parameters. Any future volumes created using this StorageClass will have those recurring jobs automatically set up.
Field recurringJobs should follow JSON format. e.g.