phase 17: fix backup/restore scripts — use postgres:18-alpine for pg_dump version match

This commit is contained in:
Celes Renata
2026-04-12 14:41:08 -07:00
parent 3f5b4adcec
commit dd13045ca6
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ spec:
path: ${NFS_PATH} path: ${NFS_PATH}
containers: containers:
- name: backup - name: backup
image: alpine:3.20 image: postgres:18-alpine
volumeMounts: volumeMounts:
- name: nfs-backup - name: nfs-backup
mountPath: /backup mountPath: /backup
@@ -57,7 +57,7 @@ spec:
args: args:
- | - |
set -e set -e
apk add --no-cache postgresql16-client curl ca-certificates apk add --no-cache curl ca-certificates
STAMP="${BACKUP_NAME}" STAMP="${BACKUP_NAME}"
DIR="/backup/\${STAMP}" DIR="/backup/\${STAMP}"
+2 -2
View File
@@ -37,7 +37,7 @@ spec:
path: ${NFS_PATH} path: ${NFS_PATH}
containers: containers:
- name: restore - name: restore
image: alpine:3.20 image: postgres:18-alpine
volumeMounts: volumeMounts:
- name: nfs-backup - name: nfs-backup
mountPath: /backup mountPath: /backup
@@ -61,7 +61,7 @@ spec:
args: args:
- | - |
set -e set -e
apk add --no-cache postgresql16-client curl ca-certificates apk add --no-cache curl ca-certificates
DIR="/backup/${BACKUP_NAME}" DIR="/backup/${BACKUP_NAME}"
if [ ! -f "\${DIR}/stonks.pgdump" ]; then if [ ! -f "\${DIR}/stonks.pgdump" ]; then