Skip to content

Commit

Permalink
feat(plugin): add restore_command to postgresql conf template
Browse files Browse the repository at this point in the history
  • Loading branch information
adf-patrickha committed May 6, 2024
1 parent 0c04fb0 commit 426ba55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/plugin_postgresql_bareos_wal_archive.conf.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{{ ansible_managed | comment }}
archive_mode = on
archive_command = 'test ! -f {{ bareos_fd_plugin_psql_wal_archive | default("") }}/%f && cp %p {{ bareos_fd_plugin_psql_wal_archive | default("") }}/%f'

# Restore command for PostgreSQL >=12 (https://docs.bareos.org/TasksAndConcepts/Plugins.html#postgresql-12)
restore_command = 'cp {{ bareos_fd_plugin_psql_wal_archive | default("") }}/%f %p'

0 comments on commit 426ba55

Please sign in to comment.