Skip to content

Commit

Permalink
Merge pull request vmware-tanzu#5107 from danfengliu/fix-doc-issue-of…
Browse files Browse the repository at this point in the history
…-resource-filtering

Fix resource filtering command issue in Doc
  • Loading branch information
qiuming-best authored Jul 18, 2022
2 parents eaf97e7 + bf8d135 commit 5693993
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions site/content/docs/v1.4/resource-filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore two namespaces and their objects.

```bash
velero restore create <backup-name> --include-namespaces <namespace1>,<namespace2>
velero restore create <restore-name> --include-namespaces <namespace1>,<namespace2> --from-backup <backup-name>
```

### --include-resources
Expand All @@ -38,7 +38,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore all deployments and configmaps in the cluster.

```bash
velero restore create <backup-name> --include-resources deployments,configmaps
velero restore create <restore-name> --include-resources deployments,configmaps --from-backup <backup-name>
```

* Backup the deployments in a namespace.
Expand Down Expand Up @@ -72,7 +72,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore only namespaced resources in the cluster.

```bash
velero restore create <backup-name> --include-cluster-resources=false
velero restore create <restore-name> --include-cluster-resources=false --from-backup <backup-name>
```

* Backup a namespace and include cluster-scoped resources.
Expand Down Expand Up @@ -107,7 +107,7 @@ Wildcard excludes are ignored.
* Exclude two namespaces during a restore.

```bash
velero restore create <backup-name> --exclude-namespaces <namespace1>,<namespace2>
velero restore create <restore-name> --exclude-namespaces <namespace1>,<namespace2> --from-backup <backup-name>
```

### --exclude-resources
Expand Down
8 changes: 4 additions & 4 deletions site/content/docs/v1.5/resource-filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore two namespaces and their objects.

```bash
velero restore create <backup-name> --include-namespaces <namespace1>,<namespace2>
velero restore create <restore-name> --include-namespaces <namespace1>,<namespace2> --from-backup <backup-name>
```

### --include-resources
Expand All @@ -38,7 +38,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore all deployments and configmaps in the cluster.

```bash
velero restore create <backup-name> --include-resources deployments,configmaps
velero restore create <restore-name> --include-resources deployments,configmaps --from-backup <backup-name>
```

* Backup the deployments in a namespace.
Expand Down Expand Up @@ -72,7 +72,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore only namespaced resources in the cluster.

```bash
velero restore create <backup-name> --include-cluster-resources=false
velero restore create <restore-name> --include-cluster-resources=false --from-backup <backup-name>
```

* Backup a namespace and include cluster-scoped resources.
Expand Down Expand Up @@ -107,7 +107,7 @@ Wildcard excludes are ignored.
* Exclude two namespaces during a restore.

```bash
velero restore create <backup-name> --exclude-namespaces <namespace1>,<namespace2>
velero restore create <restore-name> --exclude-namespaces <namespace1>,<namespace2> --from-backup <backup-name>
```

### --exclude-resources
Expand Down
8 changes: 4 additions & 4 deletions site/content/docs/v1.6/resource-filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore two namespaces and their objects.

```bash
velero restore create <backup-name> --include-namespaces <namespace1>,<namespace2>
velero restore create <restore-name> --include-namespaces <namespace1>,<namespace2> --from-backup <backup-name>
```

### --include-resources
Expand All @@ -38,7 +38,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore all deployments and configmaps in the cluster.

```bash
velero restore create <backup-name> --include-resources deployments,configmaps
velero restore create <restore-name> --include-resources deployments,configmaps --from-backup <backup-name>
```

* Backup the deployments in a namespace.
Expand Down Expand Up @@ -72,7 +72,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore only namespaced resources in the cluster.

```bash
velero restore create <backup-name> --include-cluster-resources=false
velero restore create <restore-name> --include-cluster-resources=false --from-backup <backup-name>
```

* Backup a namespace and include cluster-scoped resources.
Expand Down Expand Up @@ -107,7 +107,7 @@ Wildcard excludes are ignored.
* Exclude two namespaces during a restore.

```bash
velero restore create <backup-name> --exclude-namespaces <namespace1>,<namespace2>
velero restore create <restore-name> --exclude-namespaces <namespace1>,<namespace2> --from-backup <backup-name>
```

### --exclude-resources
Expand Down
8 changes: 4 additions & 4 deletions site/content/docs/v1.7/resource-filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore two namespaces and their objects.

```bash
velero restore create <backup-name> --include-namespaces <namespace1>,<namespace2>
velero restore create <restore-name> --include-namespaces <namespace1>,<namespace2> --from-backup <backup-name>
```

### --include-resources
Expand All @@ -38,7 +38,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore all deployments and configmaps in the cluster.

```bash
velero restore create <backup-name> --include-resources deployments,configmaps
velero restore create <restore-name> --include-resources deployments,configmaps --from-backup <backup-name>
```

* Backup the deployments in a namespace.
Expand Down Expand Up @@ -72,7 +72,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore only namespaced resources in the cluster.

```bash
velero restore create <backup-name> --include-cluster-resources=false
velero restore create <restore-name> --include-cluster-resources=false --from-backup <backup-name>
```

* Backup a namespace and include cluster-scoped resources.
Expand Down Expand Up @@ -107,7 +107,7 @@ Wildcard excludes are ignored.
* Exclude two namespaces during a restore.

```bash
velero restore create <backup-name> --exclude-namespaces <namespace1>,<namespace2>
velero restore create <restore-name> --exclude-namespaces <namespace1>,<namespace2> --from-backup <backup-name>
```

### --exclude-resources
Expand Down
8 changes: 4 additions & 4 deletions site/content/docs/v1.8/resource-filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore two namespaces and their objects.

```bash
velero restore create <backup-name> --include-namespaces <namespace1>,<namespace2>
velero restore create <restore-name> --include-namespaces <namespace1>,<namespace2> --from-backup <backup-name>
```

### --include-resources
Expand All @@ -38,7 +38,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore all deployments and configmaps in the cluster.

```bash
velero restore create <backup-name> --include-resources deployments,configmaps
velero restore create <restore-name> --include-resources deployments,configmaps --from-backup <backup-name>
```

* Backup the deployments in a namespace.
Expand Down Expand Up @@ -72,7 +72,7 @@ Wildcard takes precedence when both a wildcard and specific resource are include
* Restore only namespaced resources in the cluster.

```bash
velero restore create <backup-name> --include-cluster-resources=false
velero restore create <restore-name> --include-cluster-resources=false --from-backup <backup-name>
```

* Backup a namespace and include cluster-scoped resources.
Expand Down Expand Up @@ -113,7 +113,7 @@ Wildcard excludes are ignored.
* Exclude two namespaces during a restore.

```bash
velero restore create <backup-name> --exclude-namespaces <namespace1>,<namespace2>
velero restore create <restore-name> --exclude-namespaces <namespace1>,<namespace2> --from-backup <backup-name>
```

### --exclude-resources
Expand Down
8 changes: 4 additions & 4 deletions site/content/docs/v1.9/resource-filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Namespaces to include. Default is `*`, all namespaces.
* Restore two namespaces and their objects.

```bash
velero restore create <backup-name> --include-namespaces <namespace1>,<namespace2>
velero restore create <restore-name> --include-namespaces <namespace1>,<namespace2> --from-backup <backup-name>
```

### --include-resources
Expand All @@ -42,7 +42,7 @@ Kubernetes resources to include in the backup, formatted as resource.group, such
* Restore all deployments and configmaps in the cluster.

```bash
velero restore create <backup-name> --include-resources deployments,configmaps
velero restore create <restore-name> --include-resources deployments,configmaps --from-backup <backup-name>
```

* Backup the deployments in a namespace.
Expand Down Expand Up @@ -76,7 +76,7 @@ Includes cluster-scoped resources. This option can have three possible values:
* Restore only namespaced resources in the cluster.

```bash
velero restore create <backup-name> --include-cluster-resources=false
velero restore create <restore-name> --include-cluster-resources=false --from-backup <backup-name>
```

* Backup a namespace and include cluster-scoped resources.
Expand Down Expand Up @@ -119,7 +119,7 @@ Namespaces to exclude.
* Exclude two namespaces during a restore.

```bash
velero restore create <backup-name> --exclude-namespaces <namespace1>,<namespace2>
velero restore create <restore-name> --exclude-namespaces <namespace1>,<namespace2> --from-backup <backup-name>
```

### --exclude-resources
Expand Down

0 comments on commit 5693993

Please sign in to comment.