Closed nevermore-muyi closed 3 years ago
@nevermore-muyi While technically you're right, emptyDir
s are supposed to be completely ephemeral, we've found that some users do keep critical workload files in these directories, so we'll continue to back these up for now.
Is it better to make emptyDir a configurable item in backup?
Some time when emptyDir is defined in Volumes section of pod but not mounted on pod (not defined in volume mount section). It partially fails to backup. I am using velero 1.6.2. Has this been fixed in any velero version? @Lyndon-Li
Describe the problem/challenge you have [A description of the current limitation/problem/challenge that you are experiencing.]
When i use restic to backup volume, it backups emptydir to backend.
Describe the solution you'd like [A clear and concise description of what you want to happen.]
Emptydir is ephemeral resource, so backup it may not be reasonable
https://github.com/vmware-tanzu/velero/blob/main/pkg/restic/common.go#L171
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Environment:
velero version
):kubectl version
):/etc/os-release
):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.