storage-profile add
Add a new storage profile.
clonit storage-profile add --name <name> --bucket <bucket> [flags]| Flag | Type | Default | Description | Required |
|---|---|---|---|---|
--name |
string | Storage profile name | Yes | |
--provider |
string | s3 |
Storage provider (s3, r2, minio, gcs, azure, filesystem) |
No |
--awscli-profile |
string | AWS CLI profile name for credentials | No | |
--access-key |
string | Access key (Azure: storage account name) | No | |
--secret-key |
string | Secret key (GCS: service-account JSON; Azure: account key) | No | |
--region |
string | Storage region | No | |
--account-id |
string | Account ID (required for R2) | No | |
--endpoint |
string | Custom endpoint URL (required for minio; Azure blob service URL) |
No | |
--bucket |
string | Bucket name (Azure: container name) | Yes | |
--prefix |
string | Object key prefix | No |
Description
Section titled “Description”Creates a new storage profile with the specified configuration. Storage profiles define the connection details for remote storage destinations used by the push and pull commands.
At minimum, a name and bucket are required. Authentication can be provided via access key and secret key, or by referencing an AWS CLI profile.
Examples
Section titled “Examples”Add an S3 storage profile with access keys:
clonit storage-profile add \ --name my-s3 \ --bucket my-snapshots-bucket \ --region us-east-1 \ --access-key AKIAIOSFODNN7EXAMPLE \ --secret-key wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYAdd a Cloudflare R2 storage profile:
clonit storage-profile add \ --name my-r2 \ --provider r2 \ --bucket my-snapshots-bucket \ --account-id abc123def456 \ --access-key AKIAIOSFODNN7EXAMPLE \ --secret-key wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYAdd a profile using AWS CLI credentials with a prefix:
clonit storage-profile add \ --name my-aws-profile \ --bucket my-snapshots-bucket \ --region us-west-2 \ --awscli-profile my-aws-profile \ --prefix clonit/productionAdd a MinIO (or other path-style S3-compatible) storage profile:
clonit storage-profile add \ --name my-minio \ --provider minio \ --bucket my-snapshots-bucket \ --endpoint http://minio.local:9000 \ --access-key minioadmin \ --secret-key minioadminAdd a Google Cloud Storage profile (service-account JSON in --secret-key):
clonit storage-profile add \ --name my-gcs \ --provider gcs \ --bucket my-snapshots-bucket \ --secret-key "$(cat service-account.json)"Add an Azure Blob Storage profile (account name in --access-key, container in --bucket):
clonit storage-profile add \ --name my-azure \ --provider azure \ --bucket my-container \ --access-key mystorageaccount \ --secret-key "<account-key>"See Also
Section titled “See Also”- storage-profile – List storage profiles
- storage-profile remove – Remove a storage profile