parent
f00f450af4
commit
592e3d1a37
4 changed files with 10 additions and 9 deletions
@ -1,3 +1,3 @@ |
||||
#!/bin/bash -e |
||||
|
||||
rm -f {{ funkwhale_root_dir }}/db_dumps/{{ funkwhale_db_name }}.sql.lz4 |
||||
rm -f {{ funkwhale_root_dir }}/backup/{{ funkwhale_db_name }}.sql.zst |
||||
|
@ -1,8 +1,8 @@ |
||||
#!/bin/bash -e |
||||
|
||||
PGPASSWORD='{{ funkwhale_db_pass }}' /usr/pgsql-11/bin/pg_dump \ |
||||
PGPASSWORD='{{ funkwhale_db_pass }}' /usr/pgsql-12/bin/pg_dump \ |
||||
--clean \ |
||||
--username={{ funkwhale_db_user }} \ |
||||
--host={{ funkwhale_db_server }} \ |
||||
{{ funkwhale_db_name }} | \ |
||||
lz4 -c > {{ funkwhale_root_dir }}/db_dumps/{{ funkwhale_db_name }}.sql.lz4 |
||||
zstd -c > {{ funkwhale_root_dir }}/backup/{{ funkwhale_db_name }}.sql.zst |
||||
|
Loading…
Reference in new issue