-store, -source, credentials, and encryption flags on every command, define a profile and run cloudstic backup -profile my-backup.
How Profiles Work
Cloudstic’s configuration lives in a single YAML file (profiles.yaml) with three sections:
profiles.yaml
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.Quick Start with Profiles
1
Create a store
Define where your backups are stored:If the store hasn’t been initialized yet, you’ll be prompted to do so.
2
Create a profile
Link a source to your store:
3
Run backups with your profile
Managing Stores
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.Create a Store
Store Encryption Settings
Stores can carry encryption configuration so you don’t need to pass it on every command:List and Inspect Stores
Managing Auth Entries
Auth entries store cloud OAuth credentials (Google Drive, OneDrive) so they can be shared across multiple profiles.Create an Auth Entry
Run the OAuth Login Flow
List and Inspect Auth Entries
Managing Profiles
Create a Profile
A profile must always reference a store. For cloud sources, an auth entry is also required:-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).
Profile Options
Edit an Existing Profile
Runprofile new with the same name to update it. Existing values are preserved unless you override them:
List and Inspect Profiles
Running Backups with Profiles
Single Profile
All Enabled Profiles
Override Profile Settings
CLI flags take precedence over profile values:Using Profiles for Other Commands
Any command that accepts global flags (-store, -s3-region, etc.) also works with -profile:
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.
Non-Interactive Mode
Use--no-prompt to disable all interactive prompts. This is useful for scripts and CI/CD pipelines:
--no-prompt, missing required fields would trigger interactive prompts. With it, missing fields cause an error instead.
Profile-Based Automation
Profiles simplify automated backups significantly. Instead of managing environment variables and long flag lists, your cron job becomes:~/bin/backup.sh
Profiles File Format
The profiles file is a YAML file with three top-level maps:profiles.yaml
Next Steps
Store Commands
Create and manage stores
Auth Commands
Set up cloud authentication
Profile Commands
Create and manage profiles
Automation
Automate backups with profiles