mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
DCD-798: name dump as tar file and specify custom format in db_restore to workaround module not supporting custom pg_dump format
This commit is contained in:
@@ -76,7 +76,9 @@
|
||||
overwrite: different
|
||||
bucket: "{{ atl_backup_manifest.artifacts.sharedHome.location.location | urlsplit('hostname') }}"
|
||||
object: "{{ atl_backup_manifest.artifacts.sharedHome.location.location | urlsplit('path') }}"
|
||||
dest: "{{ atl_backup_home_dest }}"
|
||||
# We save the backup as a .tar file so that the postgresql_db module uses pg_restore instead of psql to do restore
|
||||
# This can be removed when ansible 2.10 is released
|
||||
dest: "{{ atl_backup_home_dest }}.tar"
|
||||
|
||||
- name: Install distro-specific restore support packages
|
||||
include_tasks: "{{ ansible_distribution|lower }}.yml"
|
||||
@@ -96,7 +98,8 @@
|
||||
template: "{{ atl_jdbc_template }}"
|
||||
# Depends on fetch_backup roles
|
||||
state: restore
|
||||
target: "{{ atl_backup_db_dest }}"
|
||||
target: "{{ atl_backup_db_dest }}.tar"
|
||||
target_opts: "-Fc"
|
||||
register: result
|
||||
# managed DBs in cloud providers are not allowing full root access to the DB engine, we can safely ignore the COMMENT ON EXTENSION error
|
||||
failed_when:
|
||||
|
||||
Reference in New Issue
Block a user