diff options
Diffstat (limited to 'backup-postgres')
-rwxr-xr-x | backup-postgres | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backup-postgres b/backup-postgres index 5779cef..5ed7ceb 100755 --- a/backup-postgres +++ b/backup-postgres @@ -30,7 +30,7 @@ DATE=`date "+%Y%m%d-%H%M%S"` CLIENTBASE=/srv/www/vhosts SYSBASE=/var/backups/local/pg -sudo -u postgres psql -l -t | awk '$1 != "" {print $1}' | +sudo -u postgres psql -l -t | awk '$1 != "" && $1 != "|" {print $1}' | while read db; do if [ "$db" = "template0" -o "$db" = "template1" ] ; then continue; |