CI / build (push) Successful in 4m26s
Adds a Postgres-backed quotes domain (poems/quotes/favorites) exposed as five agent-native actions (list-quotes, get-random-quote, create-quote, toggle-favorite, list-favorites) callable from both chat and the React UI via useActionQuery/useActionMutation. Moves the primary UI from chat to a mobile-first Quotes/Favorites experience (chat moves to /chat), adds manual OpenTelemetry instrumentation exporting traces/metrics/logs over OTLP, and wires a local Docker Postgres for shared state.
17 lines
521 B
Bash
Executable File
17 lines
521 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Nightly Postgres backup for verse-quote-app. Invoked by app-754b9a8a-backup.timer.
|
|
set -euo pipefail
|
|
|
|
BACKUP_DIR="/home/exedev/backups"
|
|
RETENTION_DAYS=7
|
|
TIMESTAMP="$(date -u +%Y%m%dT%H%M%SZ)"
|
|
FILE="$BACKUP_DIR/verse-quote-app-$TIMESTAMP.sql.gz"
|
|
|
|
mkdir -p "$BACKUP_DIR"
|
|
|
|
docker exec verse-quote-app-postgres pg_dump -U versequote -d versequote | gzip > "$FILE"
|
|
|
|
find "$BACKUP_DIR" -name 'verse-quote-app-*.sql.gz' -mtime +"$RETENTION_DAYS" -delete
|
|
|
|
echo "Backed up verse-quote-app database to $FILE"
|