truenas / charts

TrueNAS SCALE Apps Catalogs & Charts
BSD 3-Clause "New" or "Revised" License
290 stars 278 forks source link

Vaultwarden, Immich, maybe others as well: Setting postgres backup storage seems to have no effect #2639

Closed iSOcH closed 1 month ago

iSOcH commented 1 month ago

I am new to Truenas, so maybe I am just missing some obvious steps.

I installed vaultwarden and immich from the truenas catalog (not truecharts). When configuring the chart, there is "Vaultwarden Postgres Backup Storage" with hint "The path to store Vaultwarden Postgres Backup.", which I set to a hostpath.

I would have expected to sooner or later find some backups in those directories, but nothing seems to happen. When I checked the underlying Deployments, I was not able to find any mention of my configured hostpaths.

$ sudo k3s kubectl -n ix-vaultwarden get all -o yaml | grep "vaultwarden-backup" # my backup path contains "vaultwarden backup"
$

In the postgres container there's only a data directory mounted for postgres, no backup

$ sudo k3s kubectl -n ix-vaultwarden exec deployment.apps/vaultwarden-postgres -- ls -l /var/lib/postgresql/
total 12
drwx------ 19 postgres postgres 26 Jul  7 12:02 data

$ sudo k3s kubectl -n ix-vaultwarden exec deployment.apps/vaultwarden-postgres -- mount | grep postgre
usb/ix-applications/releases/vaultwarden/volumes/ix_volumes/pgData on /var/lib/postgresql/data type zfs **(rw,noatime,xattr,posixacl,casesensitive)**

Am I doing something wrong or is there an issue?

stavros-k commented 1 month ago

Hello, backups are performed during chart updates only. The reason you dont see the path in the deployment is because it only appears on the Job that is spawned during upgrade.

iSOcH commented 1 month ago

Ah, yeah that explains it. Would that have been documented somewhere and I missed it?

Anyway, this is clarified for me.