diff --git a/host.yaml b/host.yaml index 624939e..17e38da 100644 --- a/host.yaml +++ b/host.yaml @@ -21,4 +21,16 @@ - bookstack - kimai - semaphore + + - name: Backup postgres databases + shell: docker exec psql14 psql14 -U {{ postgres_user }} {{ item }} > /home/chris/{{ item }}_{{ ansible_date_time.iso8601_basic_short }}.sql + loop: + - gitea + - nextcloud + - name: Compress postgres backup files + shell: gzip /home/chris/{{ item }}_{{ ansible_date_time.iso8601_basic_short }}.sql + loop: + - gitea + - nextcloud + \ No newline at end of file