migrate db back to postgres:14 and manually add wal-g automated incremental backups

This commit is contained in:
2026-08-12 11:23:08 +01:00
parent 3d13c5a9d9
commit 9ebb4283af
5 changed files with 42 additions and 8 deletions
@@ -0,0 +1,7 @@
#!/bin/bash
set -e
# Configure postgres to archive WAL logs via wal-g
echo "archive_mode = on" >> "$PGDATA/postgresql.conf"
echo "archive_command = 'wal-g wal-push %p'" >> "$PGDATA/postgresql.conf"
echo "archive_timeout = 60" >> "$PGDATA/postgresql.conf"