Save and reuse backup configurations with profiles, stores, and auth entries
Profiles let you save your backup configuration once and reuse it with a single flag. Instead of repeating -store, -source, credentials, and encryption flags on every command, define a profile and run cloudstic backup -profile my-backup.
The profiles file location defaults to ~/.config/cloudstic/profiles.yaml (Linux/macOS) or %APPDATA%\cloudstic\profiles.yaml (Windows). Override with -profiles-file or CLOUDSTIC_PROFILES_FILE.
Stores define the storage backend and its credentials. Secrets use env var indirection. You store the name of the environment variable, not the secret itself.
Stores can carry encryption configuration so you don’t need to pass it on every command:
cloudstic store new \ -name encrypted-s3 \ -uri s3:secure-bucket/backups \ -s3-region us-east-1 \ -password-secret keychain://cloudstic/prod/repo-password \ -kms-key-arn arn:aws:kms:us-east-1:123456:key/abcd
Flag
Purpose
-password-secret
Secret reference containing the repository password
-encryption-key-secret
Secret reference containing the platform key (hex)
-recovery-key-secret
Secret reference containing the recovery mnemonic
-kms-key-arn
AWS KMS key ARN (stored directly, not a secret)
-kms-region
AWS KMS region
-kms-endpoint
Custom KMS endpoint URL
Encryption secrets are never stored in the YAML file. Use secret references (env://, keychain://, wincred://, secret-service://) so only references are saved.
In interactive mode, if you omit -store-ref or -auth-ref, you’ll be prompted to select an existing one or create a new one.If you create a new store from profile new, Cloudstic also runs the store
encryption setup flow immediately (same as store new).
# Use the profile's store but override the sourcecloudstic backup -profile documents -source local:~/Downloads# Force a different storecloudstic backup -profile documents -store local:./test-store
Any command that accepts global flags (-store, -s3-region, etc.) also works with -profile:
# List snapshots from a profile's storecloudstic list -profile documents# Restore from a profile's storecloudstic restore -profile documents# Verify store config/credentials for a named store entrycloudstic store verify prod-s3# Initialize a configured store later (if creation-time init was skipped/failed)cloudstic store init prod-s3# Check integrity of a profile's storecloudstic check -profile documents# Apply retention policycloudstic forget -profile documents -keep-daily 30 -keep-weekly 8 -prune
cloudstic store verify checks credential resolution and store access for a
store entry. cloudstic store init performs initialization by store reference.
cloudstic check -profile ... verifies repository integrity.