mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 16:46:54 +02:00
Update to 2022-01-30 19:00
This commit is contained in:
12
roles/penpot/templates/pre-backup.j2
Normal file
12
roles/penpot/templates/pre-backup.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
PGPASSWORD='{{ penpot_db_pass }}' /usr/pgsql-14/bin/pg_dump \
|
||||
--clean \
|
||||
--create \
|
||||
--username={{ penpot_db_user | quote }} \
|
||||
--host={{ penpot_db_server | quote }} \
|
||||
--port={{ penpot_db_port }} \
|
||||
{{ penpot_db_name | quote }} | \
|
||||
zstd -c > {{ penpot_root_dir }}/backup/{{ penpot_db_name | quote }}.sql.zst
|
Reference in New Issue
Block a user