This repository provides a Velero volume snapshotter plugin for backing up and restoring OpenEBS ZFS LocalPV volumes to AWS S3, Google Cloud Storage, or an S3-compatible object store.
- Velero
- OpenEBS ZFS LocalPV
- An object-storage bucket and credentials available to the Velero plugin
velero plugin add openebs/velero-plugin:<VERSION>Create a Velero VolumeSnapshotLocation using the
openebs.io/zfspv-blockstore provider. The namespace, provider, and
bucket values are required; region is also required when provider is
aws.
apiVersion: velero.io/v1
kind: VolumeSnapshotLocation
metadata:
name: openebs-zfs
namespace: velero
spec:
provider: openebs.io/zfspv-blockstore
config:
namespace: openebs
provider: aws
bucket: <BUCKET_NAME>
region: <AWS_REGION>See example/06-volumesnapshotlocation.yaml
for optional S3 and incremental-backup settings.
velero backup create zfs-backup \
--include-namespaces=<NAMESPACE> \
--snapshot-volumes \
--volume-snapshot-locations=openebs-zfs
velero restore create --from-backup zfs-backup --restore-volumes=trueFor scheduled incremental backups, set incrBackupCount in the snapshot
location and create a Velero schedule:
velero schedule create zfs-schedule \
--schedule="0 */6 * * *" \
--include-namespaces=<NAMESPACE> \
--snapshot-volumes \
--volume-snapshot-locations=openebs-zfsmake build
make testBuild the container image with:
make container IMAGE=<IMAGE_NAME>This project is licensed under the Apache License 2.0. See LICENSE.