Rename all user-facing references (UI wordmark Sift+lode, titles, app name, legal pages, onboarding wizard, emails, README/docs) and infra paths (/srv/subfeed -> /srv/siftlode, image tag, deploy script, backup filenames). Internal identifiers kept on purpose: Postgres user/db "subfeed", logger namespace, localStorage keys, and the subfeed_pgdata volume (renaming would orphan the migrated production data).
11 lines
399 B
Bash
11 lines
399 B
Bash
#!/bin/sh
|
|
# Dumps the Siftlode Postgres database to backups/siftlode-<timestamp>.dump (custom format).
|
|
# Run from the project root: ./scripts/backup.sh
|
|
set -e
|
|
USER_NAME="${POSTGRES_USER:-subfeed}"
|
|
DB_NAME="${POSTGRES_DB:-subfeed}"
|
|
mkdir -p backups
|
|
TS=$(date +%Y%m%d-%H%M%S)
|
|
OUT="backups/siftlode-$TS.dump"
|
|
docker compose exec -T db pg_dump -U "$USER_NAME" -Fc "$DB_NAME" > "$OUT"
|
|
echo "Wrote $OUT"
|