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.

9 lines
240 B

#!/bin/sh
PGPASSWORD='{{ wapt_db_pass }}' /usr/pgsql-11/bin/pg_dump \
--clean \
--create \
--username={{ wapt_db_user }} \
--host={{ wapt_db_server }} \
{{ wapt_db_name }} | lz4 -c > /opt/wapt/db_dumps/{{ wapt_db_name }}.sql.lz4