Migrate to external library #22442
Replies: 2 comments 1 reply
-
|
Definitely interested in this. In my moving to Immich, I attempted to have my wife 2TB library sync via her iPhone (which did not work well), which resulted in having some stuff in the DB and the rest now in external library. I will attempt to give it a try this week. |
Beta Was this translation helpful? Give feedback.
-
|
@bihius thanks for the effort developing this tool. I used it and it seemed to work properly. However, the moved assets are duplicated. Although they are only physically in new location in my HDD, they are duplicated in Immich. If I select both new and old path assets and click on "load metadata" they are not duplicated anymore but they dissapear from new location and come back to old location (so I com back to the initial point). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I created a script that allows migrating assets from Immich’s internal
uploadfolder directly into an External Library, bypassing the built-in migration function.What it does
uploaddirectory/mnt/external/)asset.originalPathcolumn in PostgreSQL to reflect the new locationWhy
This approach makes it possible to:
Notes
UPDATE asset SET "originalPath" = ...). This is not officially supported, but in practice it works reliably if done carefully.This could be useful for anyone who wants more control over their file organization and prefers to keep Immich as an indexer/viewer on top of an existing photo library structure.
Link to repo
Beta Was this translation helpful? Give feedback.
All reactions