it’s possible to add conditions in -ttl of Velero backup (backup from kubernetes clusters). For example: I have a schedule that makes backups everyday at 15:00, the -ttl of this backups is 72 hours, so in 72 hours, this backup will be deleted. Which is the problem? The problem is if the cluster is not up for 3 days, the backups will be deleted after it turns on, and there are will not be any backup left. I need to create a backup with -ttl 72 hours only if there are 3 backups or more in the blob storage. It’s possible with Velero?
2
Answers
please use this below command has been used 72hrs backup only.
To check this command:
Make sure snapshot location must be same
example/06-local-volumesnapshotlocation.yaml
.Sample output of the above command :
For your Reference :
openebs/velero-plugin
Back Up and Restore a Kubernetes Cluster Using Velero
you can go ahead and create a schedule.
Setting up the schedule
"Back up my cluster every day at 7 am"