Compare commits

..

8 Commits

Author SHA1 Message Date
marlon 630d08f506 safer backup/restore script 2026-07-01 19:32:40 -04:00
marlon b03cc94e5e chore: publish 2.0.2+2.2.2 release 2026-06-30 20:36:14 -04:00
marlon 9978d84d16 noop 2026-06-30 20:32:25 -04:00
marlon d5af00327f fix config name 2026-06-30 20:29:44 -04:00
marlon 679bcc4ce8 chore: publish 2.0.1+2.2.2 release 2026-06-30 18:21:22 -04:00
marlon 563641ac48 chore: update image tags 2026-06-30 17:32:46 -04:00
joe-irving aaa0711fa4 chore: publish 2.1.0+2.2.0 2026-04-09 15:46:14 +01:00
joe-irving 818ec9bc13 Merge pull request 'chore: publish 2.0.0+2.0.5 release' (#8) from v2.0.0 into main
Reviewed-on: #8
2026-01-05 08:19:04 +00:00
5 changed files with 29 additions and 32 deletions
+1 -2
View File
@@ -1,2 +1 @@
export PG_BACKUP_CONFIG_VERSION=v1
export ENTRYPOINT_VERSION=v1
export PG_BACKUP_CONFIG_VERSION=v1
+14 -3
View File
@@ -2,21 +2,32 @@ 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
PGPASSWORD=$DATABASE_PASSWORD pg_dump -j 2 -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
# rm -rf $DATA_DIR/postgres/postgres-backup
exit
fi
if [ "$1" == "pre-restore" ]; then
pkill -STOP -f "webfrontend"
pkill -STOP -f "celery"
pkill -STOP -f "caddy"
# Disconnect any remaining idle sessions from the 'baserow' database
# This prevents "database is being accessed by other users" errors during pg_restore -c
source /baserow/data/.pgpass
PGPASSWORD=$DATABASE_PASSWORD psql -h localhost -U baserow -d postgres -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'baserow' AND pid <> pg_backend_pid();"
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
PGPASSWORD=$DATABASE_PASSWORD pg_restore -j 2 -h localhost -U baserow -d baserow -c $DATA_DIR/postgres/postgres-backup
pkill -CONT -f "webfrontend"
pkill -CONT -f "celery"
pkill -CONT -f "caddy"
exit
fi
+11 -19
View File
@@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: baserow/baserow:2.0.5
image: baserow/baserow:2.2.2
networks:
- proxy
environment:
@@ -17,7 +17,7 @@ services:
- jwt_key
deploy:
restart_policy:
condition: none
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
@@ -33,35 +33,27 @@ services:
- "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=2.0.0+2.0.5"
# healthcheck:
# test: ["CMD", "./baserow.sh", "backend-cmd", "backend-healthcheck"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
- "coop-cloud.${STACK_NAME}.version=2.0.2+2.2.2"
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
- source: entrypoint
target: /custom-entrypoint.sh
mode: 555
entrypoint: /custom-entrypoint.sh
mode: 0777
volumes:
baserow_data:
configs:
backup-postgres:
name: backup-postgres_${PG_BACKUP_CONFIG_VERSION}
name: ${STACK_NAME}_backup-postgres_${PG_BACKUP_CONFIG_VERSION}
file: ./backup-postgres.sh
entrypoint:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang
networks:
proxy:
-8
View File
@@ -1,8 +0,0 @@
#!/bin/bash
set -eu
/baserow.sh start
tail -f /dev/null
+3
View File
@@ -0,0 +1,3 @@
See release notes here ->
https://baserow.io/blog/baserow-2-2-release-notes