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
256 B
9 lines
256 B
5 years ago
|
#!/bin/bash -e
|
||
|
|
||
|
PGPASSWORD='{{ psono_db_pass }}' /usr/pgsql-11/bin/pg_dump \
|
||
|
--clean \
|
||
|
--username={{ psono_db_user }} \
|
||
|
--host={{ psono_db_server }} \
|
||
|
{{ psono_db_name }} | \
|
||
|
zstd -T0 -c > {{ psono_root_dir }}/backup/{{ psono_db_name }}.sql.zstd
|