Immich_db_dumper issue

I am running the immich_db_dumper container to make backups, and I am running into a failure in symbolic link creation. The daily/weekly/monthly work fine, but the "last backup" fails. Logs here. I know it's a permission issue likely, but can anyone help with this? 2023/09/16 00:00:00 1943: Creating dump of immich database from database... 2023/09/16 00:00:03 1943: Replacing daily backup /db_dumps/daily/immich-20230916.sql.gz file this last backup... 2023/09/16 00:00:03 1943: '/db_dumps/daily/immich-20230916.sql.gz' => '/db_dumps/last/immich-20230916-000000.sql.gz' 2023/09/16 00:00:03 1943: Replacing weekly backup /db_dumps/weekly/immich-202337.sql.gz file this last backup... 2023/09/16 00:00:03 1943: '/db_dumps/weekly/immich-202337.sql.gz' => '/db_dumps/last/immich-20230916-000000.sql.gz' 2023/09/16 00:00:03 1943: Replacing monthly backup /db_dumps/monthly/immich-202309.sql.gz file this last backup... 2023/09/16 00:00:03 1943: '/db_dumps/monthly/immich-202309.sql.gz' => '/db_dumps/last/immich-20230916-000000.sql.gz' 2023/09/16 00:00:03 1943: Point last backup file to this last backup... 2023/09/16 00:00:03 1943: ln: failed to create symbolic link '/db_dumps/last/immich-latest.sql.gz' 2023/09/16 00:00:03 1943: : Operation not supported 2023/09/16 00:00:03 1943 Exit Status: 1
2 Replies
bo0tzz
bo0tzz2y ago
What filesystem are you using?
madkatz
madkatzOP2y ago
I figured it out after tons of searching. You asked the right question. My filesystem is btrfs, which supports the hardlinking so that's why I was so confused. But I had the backup being written to a mounted NAS drive over CIFS (which does not support POSIX). I ultimately decided to create the db dumps locally and then rsync them over to the NAS mount. I prefer this over NFS as I have had poor experience with NFS mounting (speed, security) vs. using CIFS.

Did you find this page helpful?