Pgsql dump with snapshots
Compare changes
+ 33
− 7
@@ -14,6 +14,7 @@
@@ -14,6 +14,7 @@
@@ -34,9 +35,14 @@ fi
@@ -34,9 +35,14 @@ fi
@@ -45,24 +51,44 @@ function pgsql.backup(){
@@ -45,24 +51,44 @@ function pgsql.backup(){
sSqlGetDblist="select datname from pg_database where not datistemplate and datallowconn order by datname;"
for DATABASE in $(su ${PGUSER} -c "psql ${BACKUP_PARAMS} -At -c '$sSqlGetDblist' postgres" 2>/dev/null)