Skip to content

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) No
--awscli-profile string AWS CLI profile name for credentials No
--access-key string Access key for authentication No
--secret-key string Secret key for authentication No
--region string Storage region No
--account-id string Account ID (required for R2) No
--endpoint string Custom endpoint URL No
--bucket string Bucket name Yes
--prefix string Object key prefix No

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.

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/bPxRfiCYEXAMPLEKEY

Add 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/bPxRfiCYEXAMPLEKEY

Add 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/production