A decentralized music tracking and discovery platform built on AT Protocol 🎵 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz
98
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add backup script for Xata database with gzip compression and SHA256 checksum

+11 -1
+2 -1
.gitignore
··· 9 9 *.DS_Store 10 10 rocksky-backup.sql 11 11 *.db 12 - *.parquet 12 + *.parquet 13 + *.sql.gz
+9
tools/backup-xata.sh
··· 1 + #!/usr/bin/env bash 2 + set -euo pipefail 3 + 4 + TS="$(date -u +%Y%m%d-%H%M%SZ)" 5 + DB_URL="$XATA_POSTGRES_URL" # e.g. postgres://user:pass@host:5432/db 6 + OUT="xata-db-$TS.sql.gz" 7 + pg_dump --no-owner --no-privileges --format=plain "$DB_URL" \ 8 + | gzip -9 > "$OUT" 9 + sha256sum "$OUT" > "$OUT.sha256"