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:
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 š


19 Replies
You probably can either use the CLI to reupload them or use the new library feature
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?
Can you elaborate on
the same folder that Immich is supossed to use as library
?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
š
So you can use the CLI to reupload all the files in the
library
folderdont 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)
You should specify a different path in
UPLOAD_LOCATION
ok! that would work
thank you Alex
ā¤ļø
No problem

š¤
which version of Immich-cli are you on?
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
how come the user is undefined š¤
Are you using OAuth or something?
is a fresh immich install
And you have an admin user, correct?
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

šš»