Skip to content

Commit

Permalink
Added -T to docker-compose call to avoid STDIN issues on cron call
Browse files Browse the repository at this point in the history
  • Loading branch information
szschaler committed Feb 13, 2017
1 parent 132a778 commit e10abc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dump_db.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
/usr/local/bin/docker-compose exec db pg_dump -U postgres nexus | /usr/bin/gzip > dbdumps/dbdump.`/usr/bin/date +%Y-%m-%d"_"%H_%M_%S`.sql.gz
/usr/local/bin/docker-compose exec -T db pg_dump -U postgres nexus | /usr/bin/gzip > dbdumps/dbdump.`/usr/bin/date +%Y-%m-%d"_"%H_%M_%S`.sql.gz

0 comments on commit e10abc2

Please sign in to comment.