-
Hi everyone, first of all thanks a lot for the great work you have done with this project. If it wasn't for you, I would have never all those services running on my mini-pc currently. Talking about those services, one of the first I setup is Immich using the dockge script with option to create a docker container at install. Since then I uploaded all my photos on it and I am starting to do the same thing for my s/o. Issue is that, I would like to use the newly created LXC script instead of a dockge instance with only immich running on it. I prefer having all my services setup the same way for consistency sake and better management. So my question is : How to transfer my old immich docker container instance to a newly created LXC one without moving all my photos that are on a NAS ? Currently, my NAS is mounted with NFS in Proxmox and I mount it in LXCs (need to be privileged) using
For docker I just modified the .env file to add my mount. # .env
UPLOAD_LOCATION=/mnt/share/immich/upload # compose.yaml
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload I read trough @vhsdream great tuto so I know it is possible to use a mount point with the Immich LXC. Thanks for the help ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
The easiest method of mounting shares is via mountpoints. You mount all your shares to some directory on Proxmox host, then just make a mountpoint on your LXC pointing to that directory. I'm using that method since ever, there is no need for priviledged LXC |
Beta Was this translation helpful? Give feedback.
-
Hey @F0ofoon thanks for the shout-out! (@tremor021 I don't think the poster is asking about that - assets uploaded via Immich are organized differently on disk, so even if he mounts the existing Immich library (not an External Library, which is trivial) and points the new Immich to the share, it won't recognise the data.) I tried doing something very similar to you once this script was ready for release, because I had an instance of Immich running in LXC that was kind of cobbled together (non-Docker) and I wanted to transfer my existing Immich library from my NAS, much like you. I followed the Immich docs to do a backup and restore of the DB, just like you, but ran into the exact same issues. It is possible to change the password in the backup, but kind of beside the point. I'm not too sure why it didn't work, aside from the fact that it's mentioned you can't restore a DB to a new instance of Immich that has run, even one time. Since the install script starts Immich services, we can't really get around that so it's a non-starter. Hope is not completely lost, though. What I ended up doing was using a third-party tool to export my Immich library from the previous Immich install. Then I created the new Immich install, and added everything back via the web interface. Everything seems to have worked out for me, but mind you my Immich library is not very large so this was doable. I'm not recommending or vouching for this tool, but this is what I used to export my Immich assets. If you have a massive amount of Immich assets, then there may be better methods for getting the content back in. The LXC has immich-cli installed, and the Immich team also recommends Immich-Go, neither of which I have used, as I used the WebUI. |
Beta Was this translation helpful? Give feedback.
Hey @F0ofoon thanks for the shout-out!
(@tremor021 I don't think the poster is asking about that - assets uploaded via Immich are organized differently on disk, so even if he mounts the existing Immich library (not an External Library, which is trivial) and points the new Immich to the share, it won't recognise the data.)
I tried doing something very similar to you once this script was ready for release, because I had an instance of Immich running in LXC that was kind of cobbled together (non-Docker) and I wanted to transfer my existing Immich library from my NAS, much like you.
I followed the Immich docs to do a backup and restore of the DB, just like you, but ran into the exact same iss…