urbackup_backend/urbackupclient/backup_scripts/postgresbase.conf
Martin 504d6c075c Work on mariadb and postgresql backup scripts
(cherry picked from commit 43f17215cc822bc9a06aabde62dffff9fdaa7156)
2016-10-10 20:36:34 +02:00

12 lines
276 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
POSTGRESQL_WAL_DIR=/var/lib/walarchive