Skip to main content
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
SSH key authentication:
snapr.yaml

Options

Retention and notes

  • Retention deletes the oldest files in the job’s remote directory once more than retention.last backup 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 knownHosts with the server’s host key (ssh-keyscan -H <host> >> known_hosts) and leave strictHostKey at the default.
With strictHostKey: false, snapr logs a warning but accepts any host key. Use it only for ad-hoc testing.