Skip to content

Commit

Permalink
feat: backup name
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoraboeuf committed Dec 27, 2023
1 parent 37abf6a commit f0a162b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/pg-db-backup-do-space/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ description: This chart is used to set up a job which saves the content of a Dig

type: application

version: 0.1.3
version: 0.1.4
appVersion: "0.1.1"
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
--host-bucket='%(bucket)s.{{ .Values.digitalocean.space.region }}.digitaloceanspaces.com' \
put \
dump.sql \
s3://{{ .Values.digitalocean.space.bucket }}/{{ .Values.digitalocean.space.path.root }}/{{ .Values.database.name }}/dump-$(date +%Y%m%d%H%M%S).sql
s3://{{ .Values.digitalocean.space.bucket }}/{{ .Values.digitalocean.space.path.root }}/{{ or .Values.backup.name .Values.database.name }}/dump-$(date +%Y%m%d%H%M%S).sql
env:
- name: PGSSLMODE
value: "require"
Expand Down
2 changes: 2 additions & 0 deletions charts/pg-db-backup-do-space/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
backup:
# Schedule
schedule: "0 0 * * *"
# Name of the backup (if not defined, defaults to the database name)
name: ""
# Connection to the PG cluster
connection:
# Host name or IP
Expand Down

0 comments on commit f0a162b

Please sign in to comment.