diff --git a/backups/mastodon_db_backup.sh b/backups/mastodon_db_backup.sh index 3de43e79344099b7be7c6231c27d8ec61990bc31..ddb4fc41e4f5bb6bb70b5f09268cc821ad49dd15 100644 --- a/backups/mastodon_db_backup.sh +++ b/backups/mastodon_db_backup.sh @@ -21,7 +21,7 @@ backup() { rm -f $(readlink -f "$backupdir/$link") # create new backup file - docker exec pg_dumpall -U postgres -c -v | gzip >"$backupdir/$file" + docker exec -it "$cname" pg_dumpall -U postgres -c -v | gzip >"$backupdir/$file" status=$? # link the sequence number to it