diff --git a/dump_postgresql.sh b/dump_postgresql.sh index c618f10..48c0aa2 100755 --- a/dump_postgresql.sh +++ b/dump_postgresql.sh @@ -13,7 +13,7 @@ echo "start" >> ${LOGFILE} for i in `psql --list --tuples-only --port 6432 | grep -v template0 | grep -v template1 | cut -f 2 -d " " | sed '/^$/d' | tr "\n" " "`; do echo -n " ---> backing up ${i}..." >> ${LOGFILE} - pg_dump --port 6432 ${i} > ${i}.sql && rm -f ${i}.sql.bz2 && bzip2 ${i}.sql >> ${LOGFILE}; + pg_dump --port 5432 ${i} > ${i}.sql && rm -f ${i}.sql.bz2 && bzip2 ${i}.sql >> ${LOGFILE}; if [ $? -eq 0 ]; then echo " OK" >> ${LOGFILE};