kiorky / db_smart_backup

Another database(db) smart backup tool (mysql/postgresql/slapd/mongo/es/redis)
http://www.makina-corpus.com
Other
28 stars 7 forks source link

Script error on postgresql #9

Closed PeterGarlic closed 8 years ago

PeterGarlic commented 8 years ago

With an installation of postgres 9.4 on CentOS 7.2 from the PostgreSQL repository the configuration files are not located in /etc/postgres so the expression at line 70 of run_dbsmartbackups.sh fail and also the backup:

PORTS=$(egrep -h "^port\s=\s" /etc/postgresql///post*.conf 2>/dev/null|awk -F= '{print $2}'|awk '{print $1}'|sort -u)

should be a good idea to change the expression or to add a parameter that define the configuration location.

kiorky commented 8 years ago

thx, done