Configuration (agent.toml)
Copies this page as Markdown with context, so an AI can walk you through your case step by step.
Everything the agent needs to know about the server lives in one file. The rest is set in the dashboard.
Where it is
| System | Path |
|---|---|
| Linux | /etc/ganyant/agent.toml (600 permissions, owned by ganyant) |
| Windows | C:\ProgramData\ganyant\agent.toml (SYSTEM and administrators only) |
The sections
[agent]
key = "gyk_…"
[vault]
passphrase = "passphrase-generated-by-the-installer"
[backup.shop_prod]
dsn = "postgresql://backup@127.0.0.1:5432/shop_prod"
| Section | What it’s for |
|---|---|
[agent] |
key: the workspace key. If you revoke it in the dashboard, change it here. |
[vault] |
passphrase: the passphrase backups are encrypted with. It never leaves the server. |
[backup.NAME] |
How to reach each backup job’s data. NAME must match the job’s name in the dashboard. |
Keys for each backup
| Type | Keys |
|---|---|
| PostgreSQL | dsn, or database and user if you use local authentication |
| MySQL / MariaDB | database and defaults_file (a file with user and password) |
| MongoDB | uri (defaults to mongodb://127.0.0.1) |
| SQLite | path to the .db file |
| Folder | path to the folder |
Full examples in Schedule a backup.
What goes in the dashboard and what goes here
| In the dashboard | In agent.toml |
|---|---|
| Which backup jobs exist, their type, frequency and retention | How to reach the data (passwords, paths) |
| Disk thresholds and alert rules | The workspace key |
| How often metrics are sent (by plan) | The encryption passphrase |
That way your database passwords and the passphrase never go through ganyant.
Secrets in environment variables
Any value can be read from a variable with the env: prefix:
[vault]
passphrase = "env:GANYANT_VAULT_PASSPHRASE"
On Linux, set the variable for the service:
sudo systemctl edit ganyant-agent
In the editor that opens add these two lines, save and restart with sudo systemctl restart ganyant-agent:
[Service]
Environment=GANYANT_VAULT_PASSPHRASE=your-passphrase
After editing
The agent reads the file on startup. Restart it:
sudo systemctl restart ganyant-agent
On Windows: Stop-ScheduledTask ganyant-agent; Start-ScheduledTask ganyant-agent.