Where do the backup photos go?

Hello! I have setup immich on truenas scale, pointed the external to a dataset and everything works fine, however, if i take a picture and immich backs it up, does it store it in the same location? I have a SMB share on that dataset but the new picture aren't there. Where does immich store those pictures?
20 Replies
Immich
Immich7mo ago
:wave: Hey @something_radd, Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker compose ps docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy Checklist 1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: I have read applicable release notes. 3. :ballot_box_with_check: I have reviewed the FAQs for known issues. 4. :ballot_box_with_check: I have reviewed Github for known issues. 5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting. 7. :blue_square: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) If this ticket can be closed you can use the /close command, and re-open it later if needed.
Mraedis
Mraedis7mo ago
wherever you defined library/UPLOAD_LOCATION to be
Alex Tran
Alex Tran7mo ago
it goes to UPLOAD_LOCATION/upload or UPLOAD_LOCATION/library if you have storage template enabled
something_radd
something_raddOP7mo ago
where do i find that value out? I checked the folder that i have pointed to external library and i didn't see anything thats' why i was confused
something_radd
something_raddOP7mo ago
No description
something_radd
something_raddOP7mo ago
if i go to /mnt/storage/photos/chinmay i see no /upload or /library hm i guess /mnt/.ix-apps/app_mounts/immich/library? prob hidden in the app installation hm nothing in that folder seems like it's in it's own format, is it possible to keep the upload image as in? I'm copying this data downstream into backblaze and want to keep the image viewable
Zeus
Zeus7mo ago
Immich stores all images in the unedited form, as jpeg etc
something_radd
something_raddOP6mo ago
i found the folder but it seems like it's stored in random folders since i have two users, i see the uuid per user
drwxr-xr-x 258 root root 258 Nov 7 18:13 7dcdf16d-2b33-4160-b909-b949c62fb6a3
drwxr-xr-x 258 root root 258 Nov 10 09:43 eaa676d5-63e9-4414-8524-48a96b6fd423
drwxr-xr-x 258 root root 258 Nov 7 18:13 7dcdf16d-2b33-4160-b909-b949c62fb6a3
drwxr-xr-x 258 root root 258 Nov 10 09:43 eaa676d5-63e9-4414-8524-48a96b6fd423
but it's all in folders...
root@truenas[/mnt/.ix-apps/app_mounts/immich/uploads]# cd 7dcdf16d-2b33-4160-b909-b949c62fb6a3
root@truenas[.../7dcdf16d-2b33-4160-b909-b949c62fb6a3]# ls -ltr
total 2176
drwxr-xr-x 31 root root 31 Nov 7 20:55 d6
drwxr-xr-x 21 root root 21 Nov 7 20:57 5d
drwxr-xr-x 28 root root 28 Nov 7 21:06 40
drwxr-xr-x 23 root root 23 Nov 7 21:07 62
drwxr-xr-x 22 root root 22 Nov 7 21:08 43
drwxr-xr-x 30 root root 30 Nov 7 21:08 61
drwxr-xr-x 27 root root 27 Nov 7 21:08 5c
drwxr-xr-x 21 root root 21 Nov 7 21:08 05
root@truenas[/mnt/.ix-apps/app_mounts/immich/uploads]# cd 7dcdf16d-2b33-4160-b909-b949c62fb6a3
root@truenas[.../7dcdf16d-2b33-4160-b909-b949c62fb6a3]# ls -ltr
total 2176
drwxr-xr-x 31 root root 31 Nov 7 20:55 d6
drwxr-xr-x 21 root root 21 Nov 7 20:57 5d
drwxr-xr-x 28 root root 28 Nov 7 21:06 40
drwxr-xr-x 23 root root 23 Nov 7 21:07 62
drwxr-xr-x 22 root root 22 Nov 7 21:08 43
drwxr-xr-x 30 root root 30 Nov 7 21:08 61
drwxr-xr-x 27 root root 27 Nov 7 21:08 5c
drwxr-xr-x 21 root root 21 Nov 7 21:08 05
something_radd
something_raddOP6mo ago
are there any performance implication for storing it in a specific way?
Mraedis
Mraedis6mo ago
Random folders are default, it's because too many items in 1 folder will slow down your system
something_radd
something_raddOP6mo ago
kk. sorry getting back to this late. apologies, but i gave this a try, set the storage template, the migration says it's running and finishes but the folder structure doesn't change
something_radd
something_raddOP6mo ago
[/mnt/.ix-apps/app_mounts/immich/uploads]# ls -ltr
total 17
drwxr-xr-x 258 root root 258 Nov 7 18:13 7dcdf16d-2b33-4160-b909-b949c62fb6a3
drwxr-xr-x 258 root root 258 Nov 10 09:43 eaa676d5-63e9-4414-8524-48a96b6fd423
[/mnt/.ix-apps/app_mounts/immich/uploads]# ls -ltr
total 17
drwxr-xr-x 258 root root 258 Nov 7 18:13 7dcdf16d-2b33-4160-b909-b949c62fb6a3
drwxr-xr-x 258 root root 258 Nov 10 09:43 eaa676d5-63e9-4414-8524-48a96b6fd423
No description
No description
something_radd
something_raddOP6mo ago
i've ran it multiple times
Zeus
Zeus6mo ago
any logs?
something_radd
something_raddOP6mo ago
seems like it's skipping it
2024-11-26 22:32:28.252991+00:00[Nest] 7 - 11/26/2024, 2:32:28 PM  ERROR [Microservices:StorageTemplateService] Asset c7fa5ef6-e096-4050-b05e-fde4b0f0acfb missing exif info, skipping storage template migration
2024-11-26 22:32:28.252991+00:00[Nest] 7 - 11/26/2024, 2:32:28 PM  ERROR [Microservices:StorageTemplateService] Asset c7fa5ef6-e096-4050-b05e-fde4b0f0acfb missing exif info, skipping storage template migration
some do finish though
2024-11-26 22:28:33.653291+00:00[Nest] 7 - 11/26/2024, 2:28:33 PM  LOG [Microservices:StorageTemplateService] Finished storage template migration
2024-11-26 22:28:33.653291+00:00[Nest] 7 - 11/26/2024, 2:28:33 PM  LOG [Microservices:StorageTemplateService] Finished storage template migration
Zeus
Zeus6mo ago
well it seems that the files in question have no time/date info so it does not know where to put them
something_radd
something_raddOP6mo ago
strange.. they definitely do have that info. immich loads fine with the dates let me see
Zeus
Zeus6mo ago
I mean immich is not going to delete the folders you are looking at perhaps you are not understanding where to look. the storage template files will be in library/
something_radd
something_raddOP6mo ago
hm that might be. let me double check the mount binds if it can't find the exif data, does it migrate or keep it where it is? or create a random "failed" folder and put it in that? nvm figured it out truenas bindings were wonky.. i'll update some readme for whoever installs it next thanks for the help!

Did you find this page helpful?