velero icon indicating copy to clipboard operation
velero copied to clipboard

Support filter the resource by name during the backup

Open ywk253100 opened this issue 2 years ago • 7 comments

Currently, the --include-resources option of velero backup create command only supports specifying the resource type, but there are requirements that only need to back up a specified resource.

Vote 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.

  • :+1: for "I would like to see this bug fixed as soon as possible"
  • :-1: for "There are more important bugs to focus on right now"

ywk253100 avatar Jul 14 '22 02:07 ywk253100

  • velero restore for the same requirement

27149chen avatar Jul 14 '22 09:07 27149chen

IMO this is a slightly lower priority than https://github.com/vmware-tanzu/velero/issues/5120 as it feels natural to use label to solve this problem?

reasonerjt avatar Jul 18 '22 06:07 reasonerjt

IMO this is a slightly lower priority than #5120 as it feels natural to use label to solve this problem?

I think we should not touch user's resources, and it might cause probelms. Also labels don't work sometimes since resouces owner can revert such changes

27149chen avatar Jul 19 '22 03:07 27149chen

This issue https://github.com/vmware-tanzu/velero/issues/5152 describes one option about how to implement this feature

ywk253100 avatar Aug 11 '22 02:08 ywk253100

@ywk253100 note that I've suggested a change to https://github.com/vmware-tanzu/velero/issues/5152 to make it more flexible with respect to includes/excludes as well as less confusing with respect to existing include/exclude behavior.

sseago avatar Aug 18 '22 18:08 sseago

Currently, the --include-resources option of velero backup create command only supports specifying the resource type, but there are requirements that only need to back up a specified resource.

Vote 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.

  • 👍 for "I would like to see this bug fixed as soon as possible"
  • 👎 for "There are more important bugs to focus on right now"

I've deployed Velero on kubernetes cluster in corporate level and we have the same requirement. Hope they add this feature soon.

neginhsobhani avatar Mar 10 '24 09:03 neginhsobhani