Mount each "USER ID" dir from container to NAS/host.

Here is the problem, I have a seperate NFS/CIFS shares for me and my girlfriend and I want to backup her uploads to her NFS share a my upload to my NFS share. If I mount /usr/src/app/upload to my NAS then I mount every user /usr/src/app/upload/1234*** and /usr/src/app/upload/5678*** to one location, so i thought I mount each user id folder to are own shares like this
${MY_UPLOAD_LOCATION}:/usr/src/app/upload/1234***
${HER_UPLOAD_LOCATION}:/usr/src/app/upload/5678***
${MY_UPLOAD_LOCATION}:/usr/src/app/upload/1234***
${HER_UPLOAD_LOCATION}:/usr/src/app/upload/5678***
It is working, but it looks likes the application is not designed like that 1. when I mount /usr/src/app/upload/ I can see a correct storage usage (pic_1) when I mount each USER ID directory it shows me the local (container) available en used storage. 2. after a photo upload (cli and web) I only see the actual file after a migration job on my mounted share. Does anyone have a solution to get this working and separate the storage for each user?
No description
No description
2 Replies
Alex Tran
Alex Tran3y ago
Yeah we did not design the application to work this way
jrasm91
jrasm913y ago
FYI we'll implement separate user storage like this: https://github.com/immich-app/immich/discussions/1642 (not at the file system level)

Did you find this page helpful?