add minio backup label and fix pg restore path

This commit is contained in:
notplants
2026-02-20 14:19:59 +00:00
parent 7146f3e8be
commit 0411553e36
4 changed files with 9 additions and 2 deletions

View File

@ -75,6 +75,12 @@ LOGGING_LEVEL_LOGGERS_APP=INFO
# Password is managed via Docker secret 'collabora_p'
#COLLABORA_ADMIN_USERNAME=admin
##############################################################################
# BACKUPS
##############################################################################
# Set to false to disable backup-bot labels (default: true)
#ENABLE_BACKUPS=true
##############################################################################
# WOPI SCHEDULING
##############################################################################

View File

@ -3,7 +3,7 @@
export ABRA_ENTRYPOINT_VERSION=v11
export NGINX_CONF_VERSION=v6
export ONLYOFFICE_CONF_VERSION=v2
export PG_BACKUP_VERSION=v3
export PG_BACKUP_VERSION=v4
environment() {
# this exports all the secrets as environment variables

View File

@ -280,6 +280,7 @@ services:
- "traefik.http.middlewares.${STACK_NAME}_minio-cors.headers.accessControlMaxAge=600"
- "traefik.http.middlewares.${STACK_NAME}_minio-cors.headers.addVaryHeader=true"
- "traefik.http.routers.${STACK_NAME}_minio.middlewares=${STACK_NAME}_minio-cors"
- "backupbot.backup=${ENABLE_BACKUPS:-true}"
collabora:
image: collabora/code:25.04.9.1.1

View File

@ -10,7 +10,7 @@ function backup {
}
function restore {
cd /var/lib/postgresql/data/
cd /var/lib/postgresql/data/pgdata
restore_config(){
# Restore allowed connections
cat pg_hba.conf.bak > pg_hba.conf