urbackup_backend/urbackupclient/backup_scripts/postgresbase.conf
Martin 583cb98e2f Automatically find postgresql data directory
(cherry picked from commit 34e70979cd72b6349989d1e61f58b98dfe8c8bd3)
2016-10-06 16:13:38 +02:00

10 lines
236 B
Bash

#!/bin/sh
#Enable Postgresql base backup
POSTGRESQL_BASE_ENABLED=0
#PostgreSQL database storage directory
if [ "$POSTGRESQL_BASE_ENABLED" != "x0" ]
then
POSTGRESQL_BASE_DIR=`su postgres -c "psql -A -q -t -c 'SHOW data_directory'"`
fi