sightbox/backup/.env.example

28 lines
1.2 KiB
Plaintext

# Copy to .env — never commit the real file.
# Must match docker-compose.data-dir.yml's SIGHTBOX_DATA_DIR exactly (same
# value goes in the root .env too, since docker compose and backup.sh both
# need it, and Compose doesn't read backup/.env). Absolute path, no
# trailing slash — every subdirectory under it must already exist before
# `docker compose up` (bind driver_opts don't auto-create dirs the way a
# plain named volume does). See playbook/BACKUP_RESTORE.md.
SIGHTBOX_DATA_DIR=/opt/sightbox/data
# The repo checkout's own root (the directory this backup/ folder lives
# inside) — backed up alongside SIGHTBOX_DATA_DIR so a restore needs
# nothing but this one archive, not a separate git clone. Absolute path.
SIGHTBOX_APP_DIR=/opt/sightbox/app
# Cloudflare R2 — Dashboard → R2 → Overview for the account ID, "Manage API
# Tokens" for a token scoped to Object Read & Write on this one bucket only.
R2_ACCOUNT_ID=
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
R2_BUCKET=
# Retention: daily/ backups older than this many days get pruned; a copy
# taken on a Sunday also lands in weekly/, pruned separately (see
# backup.sh) — 14 daily + 8 weekly (56 days) by default.
RETENTION_DAILY_DAYS=14
RETENTION_WEEKLY_DAYS=56