Add mastodon-db-backup

This commit is contained in:
Jeffrey Serio 2024-07-07 06:20:47 -05:00
parent d7c600ae3c
commit fcd582f4a6

3
bin/mastodon-db-backup Executable file
View File

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