# Template for the offsite backup target used by scripts/backup-relay.sh. # Copy to ~/.config/skatespots/restic.env and fill in — that file is outside the # repo and must never be committed. # # Any restic backend works. Examples: # Backblaze B2: RESTIC_REPOSITORY=b2:my-bucket:skatespots/relay # S3 / R2: RESTIC_REPOSITORY=s3:https://.r2.cloudflarestorage.com/ # SFTP directly: RESTIC_REPOSITORY=sftp:user@host:/srv/skatespots-backups # SFTP via an ~/.ssh/config alias (keeps the key path out of this file): # Host my-backup # HostName # User # IdentityFile ~/.ssh/backup_key # → RESTIC_REPOSITORY=sftp:my-backup:/path/to/repo # # Configured here: the CVM host over SFTP using the `skatespots-cvm` ssh alias # (see AGENTS.md → Relay archive). # # Optional SECOND offsite: copy this file to ~/.config/skatespots/restic-2.env # and point it at another repo (e.g. Cloudflare R2 / Backblaze B2). backup-relay.sh # pushes to BOTH, so you get true 3-2-1: local + CVM host + object storage. # # One-time init, from this machine: # set -a; . ~/.config/skatespots/restic.env; set +a # restic init # # Then the weekly timer will keep it in sync (restic backup + forget --prune). RESTIC_REPOSITORY= RESTIC_PASSWORD= # Backend credentials (only the ones your backend needs): # AWS_ACCESS_KEY_ID= # AWS_SECRET_ACCESS_KEY= # B2_ACCOUNT_ID= # B2_ACCOUNT_KEY=