backup immich db daily [ci skip]

This commit is contained in:
Viktor Barzin 2025-05-10 18:54:11 +00:00
parent 27d92967c1
commit 02b992d69d
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 8 additions and 7 deletions

View file

@ -10,11 +10,11 @@ defaultPodOptions:
env:
# REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}'
REDIS_HOSTNAME: "redis.redis.svc.cluster.local"
# DB_HOSTNAME: "{{ .Release.Name }}-postgresql"
# DB_USERNAME: "{{ .Values.postgresql.global.postgresql.auth.username }}"
# DB_DATABASE_NAME: "{{ .Values.postgresql.global.postgresql.auth.database }}"
# # -- You should provide your own secret outside of this helm-chart and use `postgresql.global.postgresql.auth.existingSecret` to provide credentials to the postgresql instance
# DB_PASSWORD: "{{ .Values.postgresql.global.postgresql.auth.password }}"
# DB_HOSTNAME: "postgresql.dbaas"
# DB_USERNAME: "immich"
# DB_DATABASE_NAME: "immich"
# # # -- You should provide your own secret outside of this helm-chart and use `postgresql.global.postgresql.auth.existingSecret` to provide credentials to the postgresql instance
# DB_PASSWORD: "${postgresql_password}"
# TYPESENSE_ENABLED: "{{ .Values.typesense.enabled }}"
# TYPESENSE_ENABLED: "1"
# TYPESENSE_API_KEY: "{{ .Values.typesense.env.TYPESENSE_API_KEY }}"
@ -43,6 +43,7 @@ immich:
postgresql:
enabled: true
# enabled: false
image:
repository: tensorchord/pgvecto-rs
tag: pg14-v0.2.0
@ -78,7 +79,7 @@ machine-learning:
# MACHINE_LEARNING_PRELOAD__CLIP: immich-app/ViT-H-14-378-quickgelu__dfn5b # too big(?)
# MACHINE_LEARNING_PRELOAD__CLIP: immich-app/ViT-L-16-SigLIP-384__webli # too big(?)
#MACHINE_LEARNING_PRELOAD__CLIP: ViT-B-32__openai # too big(?)
MACHINE_LEARNING_PRELOAD__CLIP: ViT-B-16-SigLIP2__webli
MACHINE_LEARNING_PRELOAD__CLIP: ViT-B-16-SigLIP2__webli
persistence:
cache:
enabled: true

View file

@ -174,7 +174,7 @@ resource "kubernetes_cron_job_v1" "postgresql-backup" {
spec {
concurrency_policy = "Replace"
failed_jobs_history_limit = 5
schedule = "0 */6 * * *"
schedule = "0 0 * * *"
# schedule = "* * * * *"
starting_deadline_seconds = 10
successful_jobs_history_limit = 10