You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
281 B
12 lines
281 B
3 years ago
|
#!/bin/sh
|
||
|
|
||
|
set -eo pipefail
|
||
5 years ago
|
|
||
|
PGPASSWORD='{{ psono_db_pass }}' /usr/pgsql-11/bin/pg_dump \
|
||
|
--clean \
|
||
3 years ago
|
--create \
|
||
5 years ago
|
--username={{ psono_db_user }} \
|
||
|
--host={{ psono_db_server }} \
|
||
|
{{ psono_db_name }} | \
|
||
5 years ago
|
zstd -T0 -c > {{ psono_root_dir }}/backup/{{ psono_db_name }}.sql.zst
|