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:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user