-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(GCP) Users should be able to select a snapshot type (archive or standard) when creating backups #7371
(GCP) Users should be able to select a snapshot type (archive or standard) when creating backups #7371
Comments
Thanks for bring the requirement which is important in certain scenario! |
@tuusberg
PS: There is a supported parameter called |
Hi @blackpiglet, We are creating snapshots using Velero Native Snapshot. I've already found the place that needs to be changed in order to get it working. The snapshot type could passed to the struct here, that would do the trick. More than happy to open a pull request, but wanted to make sure what I am planning to do is correct and this sort of change is something Velero community would benefit from. |
@tuusberg And init the
|
Would that change make it configurable on a per-schedule basis? I am trying to achieve the following: Backups with long TTL (e.g. weekly and monthly backup schedules that have TTLs of 1 year/10 years, respectively) would use archive snapshots and hourly/daily would use standard ones. Would that be possible to achieve the described behavior by adding snapshotType to |
The VolumeSnapshotLocation setting is not per schedule or backup, but the Velero supports multiple VolumeSnapshotLocations. |
that would work! So we need to make these code changes, then create a separate VolumeSnapshotLocation that will have its snapshotType set to Archive and use that VolumeSnapshotLocation for certain schedules. I will start working on a PR for it closer to the end of this week. Thanks for sharing the knowledge! |
I'm also in need of this and interested in contributing. @tuusberg let me know if I can help! |
Describe the problem/challenge you have
We are using Velero extensively to back up our entire production network. Hundreds of blockchain node backups produce thousands of snapshots and it's costing us a lot of money to keep them around. GCP introduced archive snapshots that share the same interface with the standard ones, which means Velero should be able to seamlessly work with both types. Using archive snapshots would reduce cloud costs for backups that have larger TTLs.
Describe the solution you'd like
I would like to be able to select a SnapshotType upon creating a backup. The standard type can be made the default and users would explicitly need to select archive type if they need to.
Anything else you would like to add:
Environment:
velero version
): 1.13.0kubectl version
): 1.27.7Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: