mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 16:46:54 +02:00
Update to 2022-01-26 18:00
This commit is contained in:
13
roles/taiga/templates/pre-backup.j2
Normal file
13
roles/taiga/templates/pre-backup.j2
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
PGPASSWORD='{{ taiga_db_pass }}' /usr/pgsql-14/bin/pg_dump \
|
||||
--clean \
|
||||
--create \
|
||||
--username={{ taiga_db_user | quote }} \
|
||||
--host={{ taiga_db_server | quote }} \
|
||||
--port={{ taiga_db_port }} \
|
||||
{{ taiga_db_name | quote }} | \
|
||||
zstd -c > {{ taiga_root_dir }}/backup/{{ taiga_db_name | quote }}.sql.zst
|
||||
|
Reference in New Issue
Block a user