Skip to content

Commit

Permalink
Merge pull request #223 from vibhorkum/barman_backup_fix
Browse files Browse the repository at this point in the history
adding the fix for barman archive
  • Loading branch information
vibhorkumar123 authored Aug 20, 2021
2 parents b139251 + 5d5dc67 commit 51a76e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.5.1
3.5.2
7 changes: 7 additions & 0 deletions roles/setup_barman/tasks/post_configure_barman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
become: true
become_user: barman

- name: Archive the first WAL file using barman
ansible.builtin.command:
cmd: "/usr/bin/barman switch-wal {{ inventory_hostname }}-{{ pg_instance_name }} --archive"
delegate_to: "{{ _barman_server_public_ip }}"
become: true
become_user: barman

- name: Execute barman check
ansible.builtin.command:
cmd: "/usr/bin/barman check {{ inventory_hostname }}-{{ pg_instance_name }}"
Expand Down

0 comments on commit 51a76e3

Please sign in to comment.