fix db.sh for postgres 9.5+

fixed backup function for postgres 9.5+ (removed "-i" option)
This commit is contained in:
G.Azamat 2017-08-30 22:01:38 +05:00 committed by GitHub
commit 4868823057

View file

@ -88,7 +88,7 @@ psql_query() {
}
psql_dump() {
pg_dump -h $HOST -U $USER -c --inserts -O -x -i -f $1 $2 2>/tmp/e.psql
pg_dump -h $HOST -U $USER -c --inserts -O -x -f $1 $2 2>/tmp/e.psql
if [ '0' -ne "$?" ]; then
rm -rf $tmpdir
if [ "$notify" != 'no' ]; then