mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 15:47:32 +02:00
Update to 2022-07-25 16:00
This commit is contained in:
11
roles/odoo/templates/pre-backup.sh.j2
Normal file
11
roles/odoo/templates/pre-backup.sh.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
PGPASSWORD={{ odoo_db_pass | quote }} /usr/pgsql-14/bin/pg_dump \
|
||||
--format=custom \
|
||||
--clean \
|
||||
--username={{ odoo_db_user }} \
|
||||
--host={{ odoo_db_server }} \
|
||||
--file={{ odoo_root_dir }}/backup/{{ odoo_db_name }}.sqlc \
|
||||
{{ odoo_db_name }}
|
Reference in New Issue
Block a user