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 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 11:21:44 +01:00
co-authored by Claude Opus 4.6
parent 448e31c01b
commit 82e430e645
+1
View File
@@ -38,6 +38,7 @@ services:
command: command:
- | - |
mkdir -p /backup/wal /backup/full mkdir -p /backup/wal /backup/full
chown 999:999 /backup/wal
while true; do while true; do
STAMP=$$(date +%Y-%m-%d_%H-%M-%S) STAMP=$$(date +%Y-%m-%d_%H-%M-%S)
echo "Starting full backup: full_$$STAMP" echo "Starting full backup: full_$$STAMP"