6 Commits

Author SHA1 Message Date
3158926e7b chore: publish 1.2.2+1.35.3 release 2025-11-10 18:58:27 -05:00
136ad45cfb rollback 2025-11-10 20:46:35 +00:00
26e98e915d rollback 2025-11-10 15:42:04 -05:00
aa6b8472f5 rollback restart condition 2025-11-10 15:40:19 -05:00
f19c498001 chore: publish 1.2.1+1.35.3 release 2025-11-10 12:01:15 -05:00
db18e08971 change restart policy to unless-stopped 2025-11-10 11:58:37 -05:00
3 changed files with 3 additions and 37 deletions

View File

@ -1 +0,0 @@
export PG_BACKUP_CONFIG_VERSION=v1

View File

@ -1,22 +0,0 @@
if [ "$1" == "pre-backup" ]; then
# Remove any existing db dump and then create a new one
rm -rf $DATA_DIR/postgres/postgres-backup
source /baserow/data/.pgpass
PGPASSWORD=$DATABASE_PASSWORD pg_dump -j 8 -h localhost -U baserow baserow --format=directory -f $DATA_DIR/postgres/postgres-backup
exit
fi
if [ "$1" == "post-backup" ]; then
rm -rf $DATA_DIR/postgres/postgres-backup
exit
fi
if [ "$1" == "pre-restore" ]; then
exit
fi
if [ "$1" == "post-restore" ]; then
source /baserow/data/.pgpass
PGPASSWORD=$DATABASE_PASSWORD pg_restore -j 8 -h localhost -U baserow -d baserow -c $DATA_DIR/postgres/postgres-backup
exit
fi

View File

@ -30,31 +30,20 @@ services:
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "backupbot.backup=true"
- "backupbot.backup.path=/baserow/data"
- "backupbot.backup.pre-hook=/backup.sh pre-backup"
- "backupbot.backup.post-hook=/backup.sh post-backup"
- "backupbot.restore.post-hook=/backup.sh post-restore"
- "coop-cloud.${STACK_NAME}.version=1.2.0+1.35.3"
- "coop-cloud.${STACK_NAME}.version=1.2.2+1.35.3"
healthcheck:
test: ["CMD", "./baserow.sh", "backend-cmd", "backend-healthcheck"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
volumes:
- baserow_data:/baserow/data
configs:
- source: backup-postgres
target: /backup.sh
mode: 0777
volumes:
baserow_data:
configs:
backup-postgres:
name: backup-postgres_${PG_BACKUP_CONFIG_VERSION}
file: ./backup-postgres.sh
networks:
proxy:
external: true