From 82e430e645726a180318c51df4207a472efcfd86 Mon Sep 17 00:00:00 2001 From: Per Magnus Petersen Date: Sat, 7 Mar 2026 11:21:44 +0100 Subject: [PATCH] Fix WAL archive permission denied by chowning backup dir to postgres UID The backup container creates /backup/wal as root, but the postgres archive_command runs as UID 999 and can't write to it. Co-Authored-By: Claude Opus 4.6 --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index ec65513..c747596 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -38,6 +38,7 @@ services: command: - | mkdir -p /backup/wal /backup/full + chown 999:999 /backup/wal while true; do STAMP=$$(date +%Y-%m-%d_%H-%M-%S) echo "Starting full backup: full_$$STAMP"