2026-06-11 01:01:37 +02:00
|
|
|
#!/bin/sh
|
chore: rebrand Subfeed -> Siftlode
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).
2026-06-14 04:40:22 +02:00
|
|
|
# Dumps the Siftlode Postgres database to backups/siftlode-<timestamp>.dump (custom format).
|
2026-06-11 01:01:37 +02:00
|
|
|
# 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)
|
chore: rebrand Subfeed -> Siftlode
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).
2026-06-14 04:40:22 +02:00
|
|
|
OUT="backups/siftlode-$TS.dump"
|
2026-06-11 01:01:37 +02:00
|
|
|
docker compose exec -T db pg_dump -U "$USER_NAME" -Fc "$DB_NAME" > "$OUT"
|
|
|
|
|
echo "Wrote $OUT"
|