# Environment file for ops/backup.sh (MAIN gendesign DB backup, #71). # # Install on the prod VM as a ROOT-OWNED, chmod-600 file that is NOT in git: # sudo cp /opt/gendesign/ops/gendesign-backup.default.example /etc/default/gendesign-backup # sudo chmod 600 /etc/default/gendesign-backup # sudo $EDITOR /etc/default/gendesign-backup # fill in real S3 credentials # # backup.sh sources this file if present. With NO S3 vars set, dumps stay # local-only under /opt/gendesign/backups (retention KEEP=7). Fill these in to # also push each dump off-box to S3 (recommended — local-only dies with the VM). # --- S3 off-site upload (Selectel S3-compatible). All four required to enable. --- #S3_ENDPOINT=https://s3.ru-1.storage.selcloud.ru #S3_BUCKET=gendesign-backups #S3_ACCESS_KEY=REPLACE_WITH_REAL_ACCESS_KEY #S3_SECRET_KEY=REPLACE_WITH_REAL_SECRET_KEY # --- optional overrides (defaults are sensible; uncomment only to change) --- #KEEP=7 # how many recent local dumps to retain #MIN_DUMP_BYTES=51200 # sanity floor; a dump smaller than this is treated as failed #LOCAL_BACKUP_DIR=/opt/gendesign/backups