We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f49893a commit a0009baCopy full SHA for a0009ba
postgres/dumpdb.sh
@@ -1 +1,7 @@
1
-docker exec postgres sh -c 'exec pg_dumpall -U postgres -c ' >dbdump.psqldump
+#!/bin/sh
2
+SQLDUMP=dbdump.psqldump
3
+if test -f $SQLDUMP
4
+then
5
+ mv $SQLDUMP ${SQLDUMP}.old
6
+fi
7
+docker exec postgres sh -c 'exec pg_dumpall -U postgres -c ' >$SQLDUMP
0 commit comments