Longhorn plugin for Velero. To take snapshots of Longhorn volumes through Velero you need to install and configure the Longhorn VolumeSnapshotter plugin.
-
Create a VolumeSnapshotLocation CR for Longhorn VolumeSnapshotter
apiVersion: velero.io/v1 kind: VolumeSnapshotLocation metadata: name: longhorn namespace: velero spec: provider: longhorn.io/longhorn
or
velero snapshot-location create longhorn \ --provider longhorn.io/longhorn
-
Add Longhorn plugin to Velero server
velero plugin add quay.io/jenting/velero-plugin:main \ --image-pull-policy Always
velero backup create <backup-name> \
--volume-snapshot-locations longhorn
velero backup delete <backup-name>