use default port

This commit is contained in:
n 2019-12-03 22:58:47 +01:00
parent f9bedc102f
commit 7b4ca18ba8
1 changed files with 1 additions and 1 deletions

View File

@ -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};