Skip to content

Whyt velero use files in directory like "resources/pods/namespaces/nginx-example" rather than "resources/pods/v1-preferredversion/namespaces/nginx-example" to restore? #3274

Discussion options

You must be logged in to vote

The difference between the two directory structures is the BackupFormatVersion (code link).

The directory structure, "resources/pods/namespaces/nginx-example"", uses backup format version 1.0.0. The structure "resources/pods/v1-preferredversion/namespaces/nginx-example" uses backup format version 1.1.0.

Backup format version 1.1.0 (the newer one) started to be used after Velero version 1.4.0 when PR #2373 was merged. The reason the backup format was changed was to create the Enable API Group Versions feature, enabled using --featureflags=EnableAPIGroupVersions.

The EnableAPIGroupVersions feature is not enabled by default. By default, the old directory structure will be used.

The new direc…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dsu-igeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3237 on January 13, 2021 23:01.