mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
11
roles/unmaintained/psono/templates/pre-backup.sh.j2
Normal file
11
roles/unmaintained/psono/templates/pre-backup.sh.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
PGPASSWORD='{{ psono_db_pass }}' /usr/pgsql-11/bin/pg_dump \
|
||||
--clean \
|
||||
--create \
|
||||
--username={{ psono_db_user }} \
|
||||
--host={{ psono_db_server }} \
|
||||
{{ psono_db_name }} | \
|
||||
zstd -T0 -c > {{ psono_root_dir }}/backup/{{ psono_db_name }}.sql.zst
|
Reference in New Issue
Block a user