Files
Momento/dump-db.sh
Antigravity bd495be965
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 12s
feat: design system overhaul — sidebar, AI chats, settings, brainstorm, color cleanup
- Sidebar: dynamic brand-accent colors, brainstorm section restyled
- AI chat general: popup panel with expand/collapse, hides when contextual AI open
- AI chat contextual: tabs reordered (Actions first), X close button, height fix
- Settings: all tabs restyled, 6 new color presets (sage, terracotta, iron, etc.)
- Global color cleanup: emerald/orange hardcoded → brand-accent dynamic
- Brainstorm page: orange → brand-accent throughout
- PageEntry animation component added to key pages
- Floating AI button: bg-brand-accent instead of hardcoded black
- i18n: all 15 locales updated with new AI/billing keys
- Billing: freemium quota tracking, BYOK, stripe subscription scaffolding
- Admin: integrated into new design
- AGENTS.md + CLAUDE.md project rules added
2026-05-16 12:59:30 +00:00

17 lines
729 B
Bash
Executable File

#!/bin/bash
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
DUMP_DIR="/tmp/memento-dumps"
mkdir -p "$DUMP_DIR"
OUTFILE="$DUMP_DIR/memento-$TIMESTAMP.sql"
docker exec memento-postgres pg_dump -U memento --inserts --no-comments memento > "$OUTFILE"
SIZE=$(du -h "$OUTFILE" | cut -f1)
ROWS=$(grep -c "^INSERT" "$OUTFILE" 2>/dev/null || echo 0)
if [ "$ROWS" -lt 10 ]; then
echo "WARNING: Only $ROWS INSERT statements — dump may be empty!"
echo "Trying alternative dump method..."
docker exec memento-postgres sh -c "pg_dump -U memento --inserts --no-comments memento" > "$OUTFILE"
ROWS=$(grep -c "^INSERT" "$OUTFILE" 2>/dev/null || echo 0)
SIZE=$(du -h "$OUTFILE" | cut -f1)
fi
echo "Dump OK: $OUTFILE ($SIZE, $ROWS INSERT statements)"