openebs / velero-plugin

Velero plugin for backup/restore of OpenEBS cStor volumes
https://docs.openebs.io
Apache License 2.0
63 stars 32 forks source link

How to take incremental backup of persistent volumes in AWS using Velero #178

Open shubhamyadav20 opened 2 years ago

shubhamyadav20 commented 2 years ago

We have currently set it up the Velero to take daily backup of pv. but problem is causing us too much cost of snapshots .

is there any way to take incremental backup using velero like AWS lifecycle Manager Policy ?

Also, need a help to retain the snapshot for certain period of time after that it should deleted automatically.

Thanks in advance !!!

mynktl commented 2 years ago

scheduled cstor backups are incremental backups. see https://github.com/openebs/velero-plugin#creating-a-scheduled-remote-backup

Also, need a help to retain the snapshot for certain period of time after that it should deleted automatically.

For this, you can automate schedule creation as per the need. For cstor, the first backup of the schedule will be a full backup and rest will be incremental, so you need to set the retention period accordingly.

shubhamyadav20 commented 2 years ago

I already setup velero as daemon set on kubernetes cluster but not sure whether it is incremental or not ? along with that ttl is set to 2016h but in aws snapshot it is keeping showing the snapshot older than 84 days which has been created via velero backup.

Please suggest to remove those backup from aws snapshot which has been expired via velero.

shubhamyadav20 commented 2 years ago

when my ttl is defined and backups has been expired after 84 days but aws snapshots are still there.

don't know what is happening.

For AWS Snapshots aws is charging the pricing as incremental so in my point of view backup is not helpful because full backup will automatically deleted after 84 days so all backups are useless.

Please help to resolve my issue. it pending since long.

shubhamyadav20 commented 2 years ago

image also, not sure where is older than 51 days to 1 day expires backup

In AWS Snapshot it is full volume backup but pricing is constantly same yesterday