From fcd582f4a6d52697792fe183ed8fa07d602bcc0d Mon Sep 17 00:00:00 2001 From: Jeffrey Serio <23226432+hyperreal64@users.noreply.github.com> Date: Sun, 7 Jul 2024 06:20:47 -0500 Subject: [PATCH] Add mastodon-db-backup --- bin/mastodon-db-backup | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 bin/mastodon-db-backup diff --git a/bin/mastodon-db-backup b/bin/mastodon-db-backup new file mode 100755 index 0000000..f099742 --- /dev/null +++ b/bin/mastodon-db-backup @@ -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"