mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
12 lines
277 B
Bash
12 lines
277 B
Bash
#!/bin/sh
|
|
|
|
#Enable Postgresql base backup
|
|
POSTGRESQL_BASE_ENABLED=0
|
|
|
|
#PostgreSQL database storage directory
|
|
if [ "x$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 |