Sources
sources is an array; a single job may back up multiple sources into one archive. Every entry must set type — the rest of the fields depend on the type.
Supported types
Pick a type for the field reference and YAML examples.
Required external tools
Most database sources shell out to the vendor's own dump utility. snapr does not bundle these — they must be present on PATH (or inside the snapr Docker image you build/extend).
If encryption is enabled, openssl must also be on PATH.
Match the major version of
pg_dump/mysqldumpto the server version, otherwise the dump may fail or omit data. The official Docker image ships matching client tooling — when running outside Docker, install the client package that pairs with your server.
How remote sources are fetched
Database, S3, and Bunny sources are pulled to the snapr host first, then archived and uploaded to the configured storages. snapr does not stream object-store data directly between the source and the storage backend.
Practical implications:
- The host needs free disk space at least equal to the (uncompressed) source size, plus headroom for the resulting archive.
- The first run downloads everything. Object-store sources (
s3,bunny) support a persistent local cache viasyncPath— later runs only fetch files whose size or modification time changed. WithoutsyncPathevery run re-downloads the full tree. - For very large buckets factor in egress costs and transfer time.
The working directory is cleaned up after the job finishes (success or failure). When syncPath is set, the cache directory is preserved between runs.