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.

12 lines
269 B

#!/bin/sh
set -eo pipefail
PGPASSWORD={{ odoo_db_pass | quote }} /usr/bin/pg_dump \
--format=custom \
--clean \
--username={{ odoo_db_user }} \
--host={{ odoo_db_server }} \
--file={{ odoo_root_dir }}/db_dumps/{{ odoo_db_name }}.sqlc \
{{ odoo_db_name }}