Skip to content

Commit

Permalink
dump without TTY (cron)
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Hummel committed Sep 20, 2017
1 parent 6ac65ee commit d017b37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/dump
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ set -euo pipefail
here="$(readlink -m $(dirname $0))"

cd $here/..
docker-compose exec postgres pg_dump --format=c --username=postgres pad

service=postgres
container=$(docker-compose ps -q $service)
docker exec $container pg_dump --format=c --username=postgres pad

0 comments on commit d017b37

Please sign in to comment.