···57575858You can create multiple of these sections for separate backup targets. Each profile has its own schedule, repository, environment, etc.
59596060-| Key | Type | Default | Description |
6161-| ------------ | ------ | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
6262-| `name` | string | `"default"` | Name for the profile |
6363-| `env_file` | string | `<config_dir>/<name>.env` | Path to the environment file with `RESTIC_REPOSITORY`, `RESTIC_PASSWORD`, etc. |
6464-| `retry_lock` | string | `"2m"` | How long to retry acquiring a repository lock (e.g. `"5m"`, `"30s"`). Will automatically attempt to clear stale locks after this timeout. Set to `"0"` to disable |
6060+| Key | Type | Default | Description |
6161+| ------------ | ------ | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
6262+| `name` | string | `"default"` | Name for the profile |
6363+| `env_file` | string | `<config_dir>/<name>.env` | Path to the environment file with `RESTIC_REPOSITORY`, `RESTIC_PASSWORD`, etc. |
6464+| `retry_lock` | string | `"2m"` | How long to retry acquiring a repository lock (e.g. `"5m"`, `"30s"`). Will automatically attempt to clear stale locks after this timeout. Set to `"0"` to disable |
6565+| `pre_hook` | string | `""` | Shell command to run before any repository operation. Inherits the profile's environment and restic binary. Operation is aborted if the hook exits non-zero. For scheduled runs, runs before the sequence |
6666+| `post_hook` | string | `""` | Shell command to run after any repository operation. Inherits the profile's environment and restic binary. For scheduled runs, runs after the sequence |
6767+6868+Hooks receive the following environment variables:
6969+7070+| Variable | Description |
7171+| -------------------- | -------------------------------------------------------------------------------------------- |
7272+| `RESTRAY_PROFILE` | Name of the active profile |
7373+| `RESTRAY_OPERATIONS` | Comma-separated list of operations that ran (e.g. `backup`, `backup,forget,check`, `unlock`) |
7474+| `RESTRAY_SCHEDULED` | `true` if triggered by schedule, `false` if manual |
7575+| `RESTRAY_STATUS` | `success` or `failure` (post-hook only) |
7676+| `RESTRAY_ERROR` | Error message when `RESTRAY_STATUS=failure` (post-hook only) |
65776678#### `[profile.schedule]`
6779