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
342 B

#!/bin/bash -e
PGPASSWORD='{{ paperless_db_pass }}' /usr/pgsql-13/bin/pg_dump \
--clean \
--username={{ paperless_db_user | quote }} \
--host={{ paperless_db_server | quote }} \
--port={{ paperless_db_port }} \
{{ paperless_db_name | quote }} | \
zstd -c > {{ paperless_root_dir }}/backup/{{ paperless_db_name | quote }}.sql.zst