summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbackup-pg1
1 files changed, 1 insertions, 0 deletions
diff --git a/backup-pg b/backup-pg
index 18c762c..8debbc8 100755
--- a/backup-pg
+++ b/backup-pg
@@ -64,6 +64,7 @@ else
exit 1
fi
+cd /
$SUDO psql $PORT --quiet --no-align --tuples-only --command "SELECT datname FROM pg_database" |
while read db; do
if [ "$db" = "template0" -o "$db" = "template1" ] ; then