semaphore/bin/backup-mastodon-data.sh

9 lines
186 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -x
set -e
PGPASSWORD=pinafore pg_dump -U pinafore -w pinafore_development > fixtures/dump.sql
cd mastodon/public/system
tar -czf ../../../fixtures/system.tgz .