phase 17: fix backup/restore scripts — use postgres:18-alpine for pg_dump version match
This commit is contained in:
+2
-2
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user