Skip to content

Commit

Permalink
Fix date not being formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
SapiensAnatis committed Jan 26, 2023
1 parent aa1aee5 commit f72eda9
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions charts/dragalia-api/templates/db-backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ spec:
image: postgres:latest
imagePullPolicy: IfNotPresent
command:
- pg_dump
- --username=postgres
- --no-password
- --format=custom
- --file=/backups/dragalia-api-$(date +"%Y-%m-%d_%H-%M-%S").bak
- --host={{ include "dragalia-api.fullname" . }}-postgresql
- --verbose
- sh
- -c
- >
echo Connecting to host {{ include "dragalia-api.fullname" . }}-postgresql;
pg_dump
--username=postgres
--no-password
--format=custom
--file=/backups/dragalia-api-$(date +"%Y-%m-%d_%H-%M-%S").bak
--host={{ include "dragalia-api.fullname" . }}-postgresql
--verbose
volumeMounts:
- name: data
mountPath: /backups
Expand Down

0 comments on commit f72eda9

Please sign in to comment.