aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/standby-clone.sh.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/standby-clone.sh.j2')
-rwxr-xr-xtemplates/standby-clone.sh.j27
1 files changed, 2 insertions, 5 deletions
diff --git a/templates/standby-clone.sh.j2 b/templates/standby-clone.sh.j2
index 16a6930..2db44b6 100755
--- a/templates/standby-clone.sh.j2
+++ b/templates/standby-clone.sh.j2
@@ -29,11 +29,8 @@ sudo -u postgres mkdir -p /var/lib/postgresql/{{ postgres_version }}/{{ postgres
29 29
30echo Get previous backup from backups server 30echo Get previous backup from backups server
31sudo -u postgres \ 31sudo -u postgres \
32 time rsync --progress -pvia --exclude='*.conf' --exclude='server.crt' --exclude='server.key' --delete \ 32 time rsync --progress -pvia --exclude='*.conf' --exclude='server.crt' --exclude='server.key' --delete {{ rsync_options }} \
33{% if postgres_barman_rsync_enabled|default(false) -%} 33 {{ barman_remote_url }}/$BARMAN_DATABASE/base/$BARMAN_BACKUP_VERSION/data/ \
34 --password-file=/var/lib/postgresql/.rsync_pass \
35{%- endif %}
36 {% if postgres_barman_rsync_enabled|default(false) -%}rsync://{%- endif -%}barman@{{ postgres_barman_server }}{%- if postgres_barman_rsync_enabled|default(false) -%}/backups{%- else -%}:~{%- endif -%}/$BARMAN_DATABASE/base/$BARMAN_BACKUP_VERSION/data/ \
37 /var/lib/postgresql/{{ postgres_version }}/{{ postgres_cluster_name }}/ 34 /var/lib/postgresql/{{ postgres_version }}/{{ postgres_cluster_name }}/
38 35
39echo Restoring .conf and server certificate 36echo Restoring .conf and server certificate