2015-05-28 11:32:57 +02:00
|
|
|
PG_SERVICE=postgresql
|
2016-01-11 17:43:50 +01:00
|
|
|
PG_BACKUP_ENABLED={{ pg_backup_enabled }}
|
2015-05-28 11:32:57 +02:00
|
|
|
PG_VERSION={{ psql_version }}
|
|
|
|
PG_DUMP_BIN={{ pg_backup_pgdump_bin }}
|
|
|
|
PG_BCK_BIN={{ pg_backup_bin }}
|
2016-01-13 16:18:54 +01:00
|
|
|
{% if pg_backup_enabled %}
|
2015-05-28 11:32:57 +02:00
|
|
|
USE_NAGIOS={{ pg_backup_use_nagios }}
|
2016-01-11 17:43:50 +01:00
|
|
|
{% else %}
|
|
|
|
USE_NAGIOS=no
|
|
|
|
{% endif %}
|
2015-05-28 11:32:57 +02:00
|
|
|
LOG_DIR={{ pg_backup_logdir }}
|
|
|
|
LOG_FILE={{ pg_backup_logfile}}
|
|
|
|
N_DAYS_TO_SPARE={{ pg_backup_retain_copies }}
|
|
|
|
BUILD_DBLIST={{ pg_backup_build_db_list }}
|
2016-01-11 17:43:50 +01:00
|
|
|
{% if pg_backup_db_list is defined %}
|
2015-06-22 14:49:59 +02:00
|
|
|
DB_LIST="{{ pg_backup_db_list }}"
|
2016-01-11 17:43:50 +01:00
|
|
|
{% else %}
|
|
|
|
DB_LIST="{% for db in psql_db_data %}{{ db.name }} {% endfor %}"
|
|
|
|
{% endif %}
|
2015-05-28 11:32:57 +02:00
|
|
|
PG_USE_AUTH={{ pg_backup_use_auth }}
|
|
|
|
PG_PASS_FILE={{ pg_backup_pass_file }}
|
|
|
|
BACKUPDIR={{ pg_backup_destdir }}
|