From 2165bea5d75740716e3c7a4264e75fb43bdf16b7 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Wed, 17 Nov 2021 11:38:27 +0100 Subject: [PATCH] Correct dump command used in postgres backup. --- host.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host.yaml b/host.yaml index 7613be3..cd4ef46 100644 --- a/host.yaml +++ b/host.yaml @@ -24,7 +24,7 @@ - semaphore - name: Backup postgres databases - shell: docker exec psql14 psql14 -U {{ postgres_user }} {{ item }} > /home/chris/{{ item }}_{{ ansible_date_time.iso8601_basic_short }}.sql + shell: docker exec psql14 pg_dump -U {{ postgres_user }} {{ item }} > /home/chris/{{ item }}_{{ ansible_date_time.iso8601_basic_short }}.sql loop: - gitea - nextcloud