I
Immich•2y ago
EnriqueGF

Import photos of a previous Immich installation

Hello, I recently had to migrate my server. I kept the original folder where the files are stored, I mean, the photos/uploaded folder is the same, as specified in the docker-compose:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
command: [ "start.sh", "immich" ]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
command: [ "start.sh", "immich" ]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
The problem is that I didnt keep the previous database, so I don't have my user and the photos are not imported. Is there any way to tell Immich to re scan the files folder for having all the media again? Thank you šŸ™‚
No description
No description
19 Replies
Alex Tran
Alex Tran•2y ago
You probably can either use the CLI to reupload them or use the new library feature
EnriqueGF
EnriqueGFOP•2y ago
what would happen if I use the CLI for uploading the files from the same folder that Immich is supossed to use as library? I mean, all the files are in their correct location, they are not shown because the DB dont have the files related it would be better to move them to another location and then scan by cli?
Alex Tran
Alex Tran•2y ago
Can you elaborate on the same folder that Immich is supossed to use as library?
EnriqueGF
EnriqueGFOP•2y ago
Immich uses a folder to create this structure: encoded-video library thumbs upload thats how Immich is supposed to store the information alright, I have exactly that folders from my previous Immich installation But I miss my old DB šŸ˜„
Alex Tran
Alex Tran•2y ago
So you can use the CLI to reupload all the files in the library folder
EnriqueGF
EnriqueGFOP•2y ago
dont you thnik that using that would overwrite or something else? because it will take from the same folder of source and destination (I will backup anyway)
Alex Tran
Alex Tran•2y ago
You should specify a different path in UPLOAD_LOCATION
EnriqueGF
EnriqueGFOP•2y ago
ok! that would work thank you Alex ā¤ļø
Alex Tran
Alex Tran•2y ago
No problem
EnriqueGF
EnriqueGFOP•2y ago
No description
EnriqueGF
EnriqueGFOP•2y ago
šŸ¤”
Alex Tran
Alex Tran•2y ago
which version of Immich-cli are you on?
EnriqueGF
EnriqueGFOP•2y ago
root@docker-immich:/mnt/media/photos/uploaded# immich --version 0.41.0 0.41.0 I think just installed with npm i -g immich node v18
Alex Tran
Alex Tran•2y ago
how come the user is undefined šŸ¤” Are you using OAuth or something?
EnriqueGF
EnriqueGFOP•2y ago
is a fresh immich install
Alex Tran
Alex Tran•2y ago
And you have an admin user, correct?
EnriqueGF
EnriqueGFOP•2y ago
supportedFiles['video'] this is returning undefined Yes Im using that API key from admin I just tried with a single .jpeg file, same error mm Oh true user is shown as "undefined". Didnt see it. Fuck sorry. Wrong URL I missed to add the :2283 port so it called another of my services lol xD and the script unexpectly validated the authentication
EnriqueGF
EnriqueGFOP•2y ago
No description
EnriqueGF
EnriqueGFOP•2y ago
šŸ‘ŒšŸ»

Did you find this page helpful?