Merge pull request #1362 from nrb/include-resources-examples

Add example for restoring with --include-resources
pull/1369/head
Steve Kriss 2019-04-12 14:45:15 -06:00 committed by GitHub
commit 3ed97db550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ func NewCreateCommand(f client.Factory, use string) *cobra.Command {
# create a restore from the latest successful backup triggered by schedule "schedule-1"
velero restore create --from-schedule schedule-1
# create a restore for only persistentvolumeclaims and persistentvolumes within a backup
velero restore create --from-backup backup-2 --include-resources persistentvolumeclaims,persistentvolumes
`,
Args: cobra.MaximumNArgs(1),
Run: func(c *cobra.Command, args []string) {