upgrade backup procedure
This commit is contained in:
parent
aca11b13e1
commit
f1811dedf1
@ -113,25 +113,3 @@ machine-learning:
|
|||||||
type: emptyDir
|
type: emptyDir
|
||||||
accessMode: ReadWriteMany
|
accessMode: ReadWriteMany
|
||||||
# storageClass: your-class
|
# storageClass: your-class
|
||||||
|
|
||||||
# web:
|
|
||||||
# enabled: true
|
|
||||||
# image:
|
|
||||||
# repository: ghcr.io/immich-app/immich-web
|
|
||||||
# pullPolicy: IfNotPresent
|
|
||||||
# persistence:
|
|
||||||
# library:
|
|
||||||
# enabled: false
|
|
||||||
|
|
||||||
# proxy:
|
|
||||||
# enabled: true
|
|
||||||
# image:
|
|
||||||
# repository: ghcr.io/immich-app/immich-proxy
|
|
||||||
# pullPolicy: IfNotPresent
|
|
||||||
|
|
||||||
# persistence:
|
|
||||||
# library:
|
|
||||||
# enabled: false
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,11 +20,10 @@ spec:
|
|||||||
image: curlimages/curl
|
image: curlimages/curl
|
||||||
command: ["curl"]
|
command: ["curl"]
|
||||||
args:
|
args:
|
||||||
- "-H"
|
- >-
|
||||||
- "Title: ${OPERATION}"
|
-H "Title: ${OPERATION}"
|
||||||
- "-d"
|
-d "Finished successfully"
|
||||||
- "Finished successfully"
|
https://ntfy.kluster.moll.re/backup
|
||||||
- "https://ntfy.kluster.moll.re/backup"
|
|
||||||
env:
|
env:
|
||||||
- name: OPERATION
|
- name: OPERATION
|
||||||
value: "PLACEHOLDER"
|
value: "PLACEHOLDER"
|
||||||
|
@ -14,15 +14,10 @@ spec:
|
|||||||
image: postgres:15
|
image: postgres:15
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args:
|
args:
|
||||||
- "-c"
|
- '-c'
|
||||||
- >-
|
- 'pg_dumpall -U postgres -h postgres-postgresql.postgres > /backup/backup-$(date +"%m-%d-%Y-%H-%M").sql'
|
||||||
echo "$postgress_password" > /root/.pgpass
|
|
||||||
&&
|
|
||||||
chmod 600 /root/.pgpass
|
|
||||||
&&
|
|
||||||
pg_dumpall -U postgres -h postgres-postgresql.postgres > /backup/backup-$(date +"%m-%d-%Y-%H-%M").sql
|
|
||||||
env:
|
env:
|
||||||
- name: postgress_password
|
- name: PGPASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: postgres-password
|
name: postgres-password
|
||||||
|
Loading…
x
Reference in New Issue
Block a user