use default port
This commit is contained in:
parent
f9bedc102f
commit
7b4ca18ba8
1 changed files with 1 additions and 1 deletions
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue