Wrong metadata when trying to reupload library after I messed up my db :(
So, I messed up and didn't properly back up my database and then it got corrupted, thus breaking my Immich server.
I still have the library directory with my images and videos organized in subfolders according to their upload date.
Then, I (aka GPT-4) wrote a script, that copied all my media from the library directory into a single folder. My plan was to then select all of the media at once and drag and drop it into the web app.
The problem is, that when I tried one picture as a test, it had the wrong metadata: The timeline listed the picture as if I took it today, due to it using the modification/creation date as metadata.
I would greatly appreciate it, if someone could help me understand how to properly re-upload my library so that it's organized in the Immich timeline like before. (I hope it's possible)
I know, that I'll have to use the CLI, but I don't know how exactly :/
4 Replies
Seems like a similar issue to my problem? https://discord.com/channels/979116623879368755/1155379731366162432
Oh yeah, it does. Thanks for the link!
https://github.com/immich-app/immich/pull/4191 << this fixes (at least) my problem
GitHub
fix(server): use mtime instead of ctime for fileCreatedAt by daniel...
ctime means "change time" and it reflects metadata change in the file system.
There is in theory a birthtime that could be used, however:
it's not supported by every file system
it c...
Ahh, thanks, I will try it out and report back!
Heyy, sorry for the late reply. In my case, that didn't really work so I ended up going with a custom script, that GPT-4 created for me 🙂