Kodi Community Forum
Moving all my medias. Which tool to update the db ? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Kodi related discussions (https://forum.kodi.tv/forumdisplay.php?fid=6)
+--- Thread: Moving all my medias. Which tool to update the db ? (/showthread.php?tid=102339)



Moving all my medias. Which tool to update the db ? - miljbee - 2011-05-27

Hello,

I am thinking of moving all my media Files to my NAS.

Today, I have all my Vids in d:\Videos.
If I move them onto the NAS, they will be located to R:\Videos.

Is there a way to update the Library DB without rescrapping ?

Thanks !


- Hudson_Hawk04 - 2011-05-27

you are going to need to change the paths of your shares, doing that "may" allow you to update without re scraping...don't quote me though.


- miljbee - 2011-05-27

of course, I can map the d:\ to the NAS, but that's not what I want.

I need to keep my D:\ as a local drive for other things that runs on the same computer.


- Tuxon86 - 2011-05-27

Couldn't you just export the DB and do a search and replace of the path and then import it after clearing it?


- jhsrennie - 2011-05-27

Tuxon86 Wrote:Couldn't you just export the DB and do a search and replace of the path and then import it after clearing it?

Yes, export the library and choose the export to single file option. Then open the XML file in your favourite text editor and replace D:\ by R:\. Then delete the old database and import your edited version.

Actually I'd backup rather than delete the old database just in case.

JR


- miljbee - 2011-05-30

Thank you for the export/import tip, that's exactly what I need.

I will let you know if it worked or not when I will do it.


- miljbee - 2011-06-23

the export/import trick worked great. It's easy to do.


Thanks for your help.