CaffNoir 21 Posted July 30, 2024 Posted July 30, 2024 (edited) Hey everyone ! Hope y'all good I have a question. I would like to change my movie folder from /xxx/storage1/movies to /xxx/storage2/movies without having to rescan everything. Is there anyway to just change the default folder and apply it to all my movie without rescan everything ? I have a huge library so it would take around 3-4 days to rescan everything without counting the time it will take to delete all the movies that has been moved. Also i actually have all of my movies on the two folders. If anyone have the answer please :)) Edited July 30, 2024 by CaffNoir more precisions
CaffNoir 21 Posted July 30, 2024 Author Posted July 30, 2024 i'v asked chatgpt and here is the answer, just want to know if it would work and not break everything like i usually do lol : https://chatgpt.com/share/1fb03b9c-0d73-46e2-b812-a38443eacb64
Happy2Play 9780 Posted July 30, 2024 Posted July 30, 2024 Close as the system.xml has nothing to do with it and the old library options.xml are obsolete as of 4.8. Example only from a migration topic, but you need to update everywhere path is used. UPDATE "main"."MediaItems" SET "Path" = replace( "Path", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE path LIKE 'C:\Users\Media\Desktop\Videos%'; UPDATE "main"."MediaItems" SET "Images" = replace( "Images", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE Images LIKE 'C:\Users\Media\Desktop\Videos%'; UPDATE "main"."MediaStreams2" SET "Path" = replace( "Path", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE path LIKE 'C:\Users\Media\Desktop\Videos%'; UPDATE "main"."Chapters3" SET "ImagePath" = replace( "ImagePath", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE imagepath LIKE 'C:\Users\Media\Desktop\Videos%'; UPDATE "main"."ItemExtradata" SET "Value" = replace( "Value", '"Path":"C:\\Users\\Media\\Desktop\\Videos', '"Path":"E:\\Media' ) WHERE value LIKE '%"Path":"C:\\Users\\Media\\Desktop\\Videos%'; If you filled in Network path on Library setup you will could need to update in options.xml and itemextradata. xml is obsolete in new 4.8+ Cinema Intro plugin paths If you use AutoOrganizer you will need to update or delete the fileorganization.db If you applied user images then path will need updated users.db
Luke 42077 Posted July 31, 2024 Posted July 31, 2024 Officially there is no way to do this, but it is on our to do list. 1
CaffNoir 21 Posted July 31, 2024 Author Posted July 31, 2024 7 hours ago, jaycedk said: @CaffNoir Are you running in Docker ? Yes ! With the last beta (4.9.0.28)
CaffNoir 21 Posted July 31, 2024 Author Posted July 31, 2024 12 hours ago, Happy2Play said: Close as the system.xml has nothing to do with it and the old library options.xml are obsolete as of 4.8. Example only from a migration topic, but you need to update everywhere path is used. UPDATE "main"."MediaItems" SET "Path" = replace( "Path", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE path LIKE 'C:\Users\Media\Desktop\Videos%'; UPDATE "main"."MediaItems" SET "Images" = replace( "Images", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE Images LIKE 'C:\Users\Media\Desktop\Videos%'; UPDATE "main"."MediaStreams2" SET "Path" = replace( "Path", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE path LIKE 'C:\Users\Media\Desktop\Videos%'; UPDATE "main"."Chapters3" SET "ImagePath" = replace( "ImagePath", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE imagepath LIKE 'C:\Users\Media\Desktop\Videos%'; UPDATE "main"."ItemExtradata" SET "Value" = replace( "Value", '"Path":"C:\\Users\\Media\\Desktop\\Videos', '"Path":"E:\\Media' ) WHERE value LIKE '%"Path":"C:\\Users\\Media\\Desktop\\Videos%'; If you filled in Network path on Library setup you will could need to update in options.xml and itemextradata. xml is obsolete in new 4.8+ Cinema Intro plugin paths If you use AutoOrganizer you will need to update or delete the fileorganization.db If you applied user images then path will need updated users.db Thanks i'll take a try, before i'll try to test if i can do it directly from docker i think i can do it in a different way without editing emby files
Solution Neminem 1518 Posted July 31, 2024 Solution Posted July 31, 2024 (edited) 9 minutes ago, CaffNoir said: Yes ! With the last beta (4.9.0.28) Ok I just did a relocation of media files the other day. Just copy you files to there new home. When done set the new mount mapping, but leave the docker inside mapping as is. I use Unraid so not really familiar with compose, but here is a screenshot of what I did. Maked green is Marked red is Hope this makes sense. If done wrong Emby will see the new file's as new or delete db entries. Edited July 31, 2024 by jaycedk 1
CaffNoir 21 Posted July 31, 2024 Author Posted July 31, 2024 yes i need to take a try, i'll try it on a fresh emby-server just to be sure but docker should merge both path into the same that i have thanks you ! I'll keep this thread updated 1
Neminem 1518 Posted July 31, 2024 Posted July 31, 2024 @CaffNoirI just edited my post with some info. Please read 1
CaffNoir 21 Posted August 3, 2024 Author Posted August 3, 2024 (edited) i still need to finish copying my files inti the new location, i'll do changes Monday and let you know, but pretty sure it will work like you'v showed, it's pretty much the same thing with portainer Thanks you Edited August 3, 2024 by CaffNoir forgot to say thanks ! :) 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now