mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-828: Initial attempt at tar-based server-to-DC transform
This commit is contained in:
@@ -18,6 +18,24 @@
|
||||
src: "{{ atl_backup_home_dest }}"
|
||||
remote_src: yes
|
||||
dest: "{{ atl_product_home_shared }}"
|
||||
when: atl_backup_home_is_server is not defined or not atl_backup_home_is_server|bool
|
||||
|
||||
- name: Restore a Confluence server home to share-home layout
|
||||
unarchive:
|
||||
src: "{{ atl_backup_home_dest }}"
|
||||
remote_src: yes
|
||||
dest: "{{ atl_product_home_shared }}"
|
||||
# Use tar transform to convert the Confluence Server
|
||||
# (unclustered) layout to shared-home version. What occurs is:
|
||||
# * --transform runs first, moving attachments into the shared home.
|
||||
# * --strip-components removes the top-level directory
|
||||
# NOTE: Also see the `confluence_config` role, which uses
|
||||
# symlinks to support server and clustered layouts
|
||||
# concurrently.
|
||||
extra_opts:
|
||||
- "--transform=s,^attachments,shared-home/attachments,"
|
||||
- "--strip-components=1"
|
||||
when: atl_backup_home_is_server is defined and atl_backup_home_is_server|bool
|
||||
|
||||
- name: Set shared home owner and group to application user
|
||||
file:
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
atl_backup_id: "{{ atl_backup_manifest.name }}"
|
||||
atl_backup_db_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest.artifacts.db.location.location | basename }}"
|
||||
atl_backup_home_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest.artifacts.sharedHome.location.location | basename }}"
|
||||
atl_backup_home_is_server: "{{ atl_backup_manifest.artifacts.sharedHome.serverHome }}"
|
||||
|
||||
# FIXME: Here we fetch the backups. However we may wish to stream
|
||||
# these directly from S3 to the target DB/FS to avoid requiring
|
||||
|
||||
Reference in New Issue
Block a user