Help migrating Immich library from Docker to LXC #5384
Replies: 1 comment 3 replies
-
Hello @guilhermearaujo - did you read the Guide? While not a 1:1 of what you're trying to accomplish, there is information in that discussion that might help you. Specifically the 'Advanced Settings' portion since it seems you are splitting up the locations of the photo content vs the metadata, like I have. What is the current value of your If I'm understanding your setup, your actual photos are in If that is the case, I would try setting
Doing it this way should have Immich look for Please give this a try and let me know how it goes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Now that there's an Immich script, I was trying to migrate my library from my docker to a container. It's kinda tricky, since there's not an easy way to export/import the data.
Did anyone could make such migration? I made some progress, but it's not working yet, I was hoping I could get some help.
My current setup is via docker, running on a VM and storage is via SMB share from my NAS.
Here's the docker compose (the parts that matter):
And this is what I did so far:
First things first, stop the services
immich-web
andimmich-ml
.Second, database: I used one of the daily backup dumps from the docker setup to restore into the LXCc setup. Since the DB passwords are different, I had to first drop everything before restoring:
Then I restored the database: (reference)
Then I updated the database password on
/opt/immich/.env
to match the old one from docker as well.Then I replaced the
/opt/immich/upload
dir with a symlink to my NAS share:Note:
/mnt/photos is where I keep all my orignal pictures, and that
.immich` subfolder is where I had the docker setup to keep whatever files Immich generates (thumbnails, metadata, video previews, etc).I was hoping that that would be all, but when I restarted the services, the web service failed to start. Here's the log:
What am I missing? Did anyone get any further than this?
Beta Was this translation helpful? Give feedback.
All reactions