File location
snapr resolves the config file in this order. The first match wins:-config <path>CLI flagSNAPR_CONFIG_FILEenvironment variable./snapr.yaml~/.config/snapr/snapr.yaml~/snapr.yaml/etc/snapr/snapr.yaml
Top-level shape
snapr.yaml
Environment references
Any string value can use theenv: prefix to read its value from an environment variable at load time. Use this to keep secrets out of the YAML file.
snapr.yaml
Applying changes
snapr loads the config once at startup. To apply edits, restart snapr. The previous configuration stays active until the new process loads successfully — a malformed file fails the restart with the error logged.Where to go next
Server
HTTP listener, auth, permissions, and the web UI.
Jobs
Schedules, compression, retention, and hook scripts.
Sources
What to back up: databases, files, and object storage.
Storages
Where archives go: local disk, S3, SFTP, WebDAV, and bunny.net.
Encryption
Symmetric encryption of finished archives.
Splitter
Split large archives into fixed-size parts.
Notifiers
Webhook, Telegram, and email notifications.
Logs
File logging and rotation.
Full example
A complete annotated snapr.yaml.