vmware-tanzu / velero

Backup and migrate Kubernetes applications and their persistent volumes
https://velero.io
Apache License 2.0
8.81k stars 1.41k forks source link

Support both snapshot and Restic backup for the same volume #1476

Open vitobotta opened 5 years ago

vitobotta commented 5 years ago

I would like to be able to quickly restore a volume from a local snapshot if something happens, as well as easily migrate to another cluster/provider with Restic if needed.

On Slack @carlisia explained to me that

You CAN use Velero’s native snapshot AND restic in the same Velero instance, but not for the same PV,. If both are configured for a PV, restic wins over the native snapshots.

So at the moment it seems I can't have both. Ideally I would have frequent snapshots and less frequent or on demand backups with Restic for the purpose mentioned.

Thanks!

skriss commented 5 years ago

xref #957

danielsand commented 3 years ago

out of curiosity ... is this still planed ?

fredgate commented 3 years ago

You CAN use Velero’s native snapshot AND restic in the same Velero instance, but not for the same PV,. If both are configured for a PV, restic wins over the native snapshots.

Does this mean that in opt-out approach for Restic integration (available from Velero 1.5), all volumes (not annotated with backup.velero.io/backup-volumes-excludes) are backed up using Restic even if they support snapshot (like Amazon EBS Volumes, Azure Managed Disks, Google Persistent Disks) ?