Skip to content

Commit

Permalink
fix: examples in backup policy create
Browse files Browse the repository at this point in the history
  • Loading branch information
lizzy-0323 committed Dec 19, 2024
1 parent da3496d commit 05c0781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cli/cmd/backup/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import "k8s.io/kubectl/pkg/util/templates"

var createExample = templates.Examples(`
# Create a backup policy by OSS
okctl backup create <tenant_name> --archive-path=oss://<bucket_name>/<path> --bak-data-path=oss://<bucket_name>/<path> --oss-access-id=<access_id> --oss-access-key=<access_key>
okctl backup create <tenant_name> --archive-path=oss://<bucket_name>/<path> --bak-data-path=oss://<bucket_name>/<path> --oss-access-id=<access_id> --oss-access-key=<access_key> --inc="0 0 * * 1,2,3," --full="0 0 * * 4,5"
# Create a backup policy by NFS
okctl backup create <tenant_name> --archive-path=<path> --bak-data-path=<path> --bak-encryption-password=<password>
okctl backup create <tenant_name> --archive-path=<path> --bak-data-path=<path> --bak-encryption-password=<password> --inc="0 0 * * 1,2,3," --full="0 0 * * 4,5"
`)

// TODO: add more examples

0 comments on commit 05c0781

Please sign in to comment.