mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-25 16:58:02 +01:00
4 lines
346 B
Bash
Executable file
4 lines
346 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
/usr/bin/docker compose -f /mnt/data/nextcloud/docker-compose.yaml exec -T db pg_dump -Fc -U nextcloud nextcloud > /mnt/data/nextcloud/db_export/backup.dump
|
|
/usr/bin/docker compose -f /mnt/data/nextcloud/docker-compose.yaml exec -T db pg_dumpall --globals-only -U nextcloud > /mnt/data/nextcloud/db_export/roles.sql
|