Skip to main content
Create or update a named backup profile that links a source, store, and optional auth entry. Profiles save your backup configuration for reuse with cloudstic backup -profile <name>.

Usage

In interactive mode, you’ll be prompted for missing required fields and offered to select or create stores and auth entries. If profile new creates a new store, it now reuses the same encryption setup flow as store new (including secret reference/native secret storage prompts).

Options

-name
string
required
Profile name. If a profile with this name already exists, its values are updated.
-source
string
required
Source URI for this profile. Formats: local:<path>, sftp://[user@]host[:port]/<path>, gdrive[://<Drive>][/<path>], gdrive-changes[://<Drive>][/<path>], onedrive[://<Drive>][/<path>], onedrive-changes[://<Drive>][/<path>].
-store-ref
string
required
Name of an existing store entry to use. The store must already exist in the profiles file (or be created with -store).
-store
string
Store URI. When combined with -store-ref, creates or updates the store entry with this URI.
-auth-ref
string
Name of an existing auth entry. Required for cloud sources (gdrive, onedrive).
-tag
string
Tag to apply to snapshots created by this profile.
-exclude
string
Exclude pattern (gitignore syntax).
-exclude-file
string
Path to a file containing exclude patterns.
-ignore-empty-snapshot
boolean
default:"false"
Skip creating a new snapshot for this profile when the resulting tree is unchanged.
-skip-native-files
boolean
default:"false"
Exclude Google-native files (Docs, Sheets, Slides) from backups.
-volume-uuid
string
Override volume UUID for local sources.
-google-credentials
string
Path to Google service account credentials JSON.
-google-token-file
string
Path to Google OAuth token file.
-onedrive-client-id
string
OneDrive OAuth client ID.
-onedrive-token-file
string
Path to OneDrive OAuth token file.
-profiles-file
string
Path to the profiles YAML file.
--no-prompt
boolean
default:"false"
Disable interactive prompts. Missing required fields cause an error.

Examples

Editing Existing Profiles

Run profile new with the same name. Existing values are preserved. Only the flags you provide are updated:

Interactive Mode

When running interactively without all required flags, you’ll be guided through the setup:
If you choose Create new store, Cloudstic prompts for store URI, then runs the same encryption setup workflow as store new.
  • Password/platform key options can be saved as env://... refs.
  • Native secret stores can also be selected:
    • macOS keychain://...
    • Windows wincred://...
    • Linux secret-service://...
For cloud sources, an auth entry is also required:

Source Validation

Source URIs are validated when creating a profile. Invalid URIs are rejected:

See Also