Server-Utils/mastodon/dobackup.sh

5 lines
123 B
Bash
Executable file

#!/bin/bash
BUDIR="/home/mastodon/.bu/"
pg_dump mastodon_production > "${BUDIR}/$(date +%Y%m%d)-mastodon_production.sql"