type: sftp uploads archives to an SFTP server using password or SSH key authentication. snapr uses the Go SSH library — no external binaries required.
Example
Password authentication:snapr.yaml
snapr.yaml
Options
Retention and notes
- Retention deletes the oldest files in the job’s remote directory once more than
retention.lastbackup sets exist; see Storages → Retention. - The private key file must be readable by the snapr process. In Docker, mount it into the container.
- For production, pre-populate
knownHostswith the server’s host key (ssh-keyscan -H <host> >> known_hosts) and leavestrictHostKeyat the default.