Преглед на файлове

fix db.sh for postgres 9.5+

fixed backup function for postgres 9.5+ (removed "-i" option)
G.Azamat преди 8 години
родител
ревизия
4868823057
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      func/db.sh

+ 1 - 1
func/db.sh

@@ -88,7 +88,7 @@ psql_query() {
 }
 }
 
 
 psql_dump() {
 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
     if [ '0' -ne "$?" ]; then
         rm -rf $tmpdir
         rm -rf $tmpdir
         if [ "$notify" != 'no' ]; then
         if [ "$notify" != 'no' ]; then