mirror of
https://github.com/roles-ansible/role-postgresql-backup.git
synced 2024-08-16 10:19:49 +02:00
fix error
This commit is contained in:
parent
e159d2c070
commit
f69ea6a30a
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ backup_databases() {
|
|||
if (umask 077 && pg_dump -F {{ postgresql_backup.export_option | string }} -h "{{ db.host | default( 'localhost' ) }}" -U "{{ db.user | default( 'postgres' ) }}" -p "{{ db.port | default( '5432' ) }}" "{{ db.name }}" -f "{{ db.name }}.in_progress.psql"); then
|
||||
{% if postgresql_backup.create_tar_gz %}
|
||||
mv "{{ db.name }}.in_progress.psql" "{{ db.name }}.psql"
|
||||
tar -czvf "{{ db.name }}.psql.tar.gz" "{{ db.name }}.in_progress.psql"
|
||||
tar -czvf "{{ db.name }}.psql.tar.gz" "{{ db.name }}.psql"
|
||||
rm "{{ db.name }}.psql"
|
||||
{% else %}
|
||||
mv "{{ db.name }}.in_progress.psql" "{{ db.name }}.psql"
|
||||
|
|
|
@ -17,5 +17,5 @@ _postgresql_backup:
|
|||
databases: []
|
||||
|
||||
# versionscheck
|
||||
playbook_version_number: 23 # should be int
|
||||
playbook_version_number: 24 # should be int
|
||||
playbook_version_path: 'role-postgresql-backup_roles-ansible_github.com.version' # unique string
|
||||
|
|
Loading…
Reference in a new issue