github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/docs/user_docs/cli/kbcli_backuprepo_create.md (about)

     1  ---
     2  title: kbcli backuprepo create
     3  ---
     4  
     5  Create a backup repo
     6  
     7  ```
     8  kbcli backuprepo create [NAME] [flags]
     9  ```
    10  
    11  ### Examples
    12  
    13  ```
    14    # Create a default backup repo using S3 as the backend
    15    kbcli backuprepo create \
    16    --provider s3 \
    17    --region us-west-1 \
    18    --bucket test-kb-backup \
    19    --access-key-id <ACCESS KEY> \
    20    --secret-access-key <SECRET KEY> \
    21    --default
    22    
    23    # Create a non-default backup repo with a specified name
    24    kbcli backuprepo create my-backup-repo \
    25    --provider s3 \
    26    --region us-west-1 \
    27    --bucket test-kb-backup \
    28    --access-key-id <ACCESS KEY> \
    29    --secret-access-key <SECRET KEY>
    30  ```
    31  
    32  ### Options
    33  
    34  ```
    35        --access-method string       Specify the access method for the backup repository, "Tool" is preferred if not specified. options: ["Mount" "Tool"]
    36        --default                    Specify whether to set the created backup repo as default
    37    -h, --help                       help for create
    38        --provider string            Specify storage provider
    39        --pv-reclaim-policy string   Specify the reclaim policy for PVs created by this backup repo, the value can be "Retain" or "Delete" (default "Retain")
    40        --volume-capacity string     Specify the capacity of the new created PVC" (default "100Gi")
    41  ```
    42  
    43  ### Options inherited from parent commands
    44  
    45  ```
    46        --as string                      Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
    47        --as-group stringArray           Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
    48        --as-uid string                  UID to impersonate for the operation.
    49        --cache-dir string               Default cache directory (default "$HOME/.kube/cache")
    50        --certificate-authority string   Path to a cert file for the certificate authority
    51        --client-certificate string      Path to a client certificate file for TLS
    52        --client-key string              Path to a client key file for TLS
    53        --cluster string                 The name of the kubeconfig cluster to use
    54        --context string                 The name of the kubeconfig context to use
    55        --disable-compression            If true, opt-out of response compression for all requests to the server
    56        --insecure-skip-tls-verify       If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
    57        --kubeconfig string              Path to the kubeconfig file to use for CLI requests.
    58        --match-server-version           Require server version to match client version
    59    -n, --namespace string               If present, the namespace scope for this CLI request
    60        --request-timeout string         The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
    61    -s, --server string                  The address and port of the Kubernetes API server
    62        --tls-server-name string         Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used
    63        --token string                   Bearer token for authentication to the API server
    64        --user string                    The name of the kubeconfig user to use
    65  ```
    66  
    67  ### SEE ALSO
    68  
    69  * [kbcli backuprepo](kbcli_backuprepo.md)	 - BackupRepo command.
    70  
    71  #### Go Back to [CLI Overview](cli.md) Homepage.
    72