mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-24 16:28:03 +01:00
5 lines
346 B
Text
5 lines
346 B
Text
|
#!/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
|