mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-12-22 14:01:58 +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
|