admin-scripts/bin/mastodon-db-backup
2024-07-07 06:20:47 -05:00

4 lines
131 B
Bash
Executable File

#!/usr/bin/env bash
sudo -u mastodon pg_dump -U mastodon -Fc mastodon_production -p 5432 -f "mastodon-db-$(date '+%Y-%m-%d').sql"