upgrade backup procedure
This commit is contained in:
@@ -20,11 +20,10 @@ spec:
|
||||
image: curlimages/curl
|
||||
command: ["curl"]
|
||||
args:
|
||||
- "-H"
|
||||
- "Title: ${OPERATION}"
|
||||
- "-d"
|
||||
- "Finished successfully"
|
||||
- "https://ntfy.kluster.moll.re/backup"
|
||||
- >-
|
||||
-H "Title: ${OPERATION}"
|
||||
-d "Finished successfully"
|
||||
https://ntfy.kluster.moll.re/backup
|
||||
env:
|
||||
- name: OPERATION
|
||||
value: "PLACEHOLDER"
|
||||
|
@@ -14,15 +14,10 @@ spec:
|
||||
image: postgres:15
|
||||
command: ["/bin/sh"]
|
||||
args:
|
||||
- "-c"
|
||||
- >-
|
||||
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
|
||||
- '-c'
|
||||
- 'pg_dumpall -U postgres -h postgres-postgresql.postgres > /backup/backup-$(date +"%m-%d-%Y-%H-%M").sql'
|
||||
env:
|
||||
- name: postgress_password
|
||||
- name: PGPASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: postgres-password
|
||||
|
Reference in New Issue
Block a user