Ansible roles
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.
 
 
 
 
 
 

11 lines
281 B

#!/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