support backup of single database or given databases
Compare changes
+ 16
− 3
@@ -18,6 +18,7 @@
@@ -18,6 +18,7 @@
# 2024-12-16 ah v1.7 on snapshot mode it can fallback for single database to normal pg_dump of origin
@@ -38,6 +39,12 @@ fi
@@ -38,6 +39,12 @@ fi
@@ -77,7 +84,7 @@ function pgsql.backup(){
@@ -77,7 +84,7 @@ function pgsql.backup(){
@@ -99,8 +106,14 @@ function pgsql.backup(){
@@ -99,8 +106,14 @@ 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 | grep -v "^$snapshotprefix" )