Kodi - How to export library to USB HD?

Hi,

Feel free to move this thread to KODI or ANDROID if it is posted in the wrong section. Thanks.

I have a Neo U9 and I keep getting a "can not write to folder" error when I try to export my KODI library to separate files my external USB HD.

I've read that Android needs permission to write to an external HD, and Kodi does not grant permission. (or something like that).

I've granted permission to other apps, like CX File Explorer, and I've been able to save files on my external usb drive. So I know it is not a drive issue.

I was just wondering if there is a workaround so I can export all my KODI nfo files to my video folders?

Specifically, I'm trying to save my watched and resume states directly on my external HD so I don't always lose them each time I upgrade TV boxes.

Thanks!
 
I don't use export library and usb. (I used before to test export library, it was working and i was able to save to my network)

Having said that if you want to keep watched/resume of your tv shows/movies install trakt kodi add on. (You can create an account (option) , sign in (google account for example) and syncronize your content)
It is working very well with kodi stable 18.9 release ?, i use it daily.
 
Last edited:
Hi,

Feel free to move this thread to KODI or ANDROID if it is posted in the wrong section. Thanks.

I have a Neo U9 and I keep getting a "can not write to folder" error when I try to export my KODI library to separate files my external USB HD.

I've read that Android needs permission to write to an external HD, and Kodi does not grant permission. (or something like that).

I've granted permission to other apps, like CX File Explorer, and I've been able to save files on my external usb drive. So I know it is not a drive issue.

I was just wondering if there is a workaround so I can export all my KODI nfo files to my video folders?

Specifically, I'm trying to save my watched and resume states directly on my external HD so I don't always lose them each time I upgrade TV boxes.

Thanks!

Have you created your own library in Kodi?

If you've added the external USB drive itself as a source & built your own library in Kodi, you should still be able to add your own user ratings, mark media as watched, or include resume points in Kodi as is anyway. That's all included. You don't specifically need to create individual .NFO files for each media file to accomplish this task.

Otherwise, the write issues are a known limitation unfortunately.

If you absolutely must do things using .NFO's you could try exporting to your_USBdrive/Android/data/org.xbmc.kodi/ & it "might" write there. Obviously, you'd still need to manually move the files after that but hopefully you won't need this.
 
if you want to keep watched/resume of your tv shows/movies install trakt kodi add on. (You can create an account (option) , sign in (google account for example) and syncronize your content)

That..... Is..... Friken..... AWESOME!!!

That is way better then what I was trying to do. Saving watched/resume points on the cloud is perfect. Now I just have to hope I don't mess it up. Syncing always concerns me, especially if you tend to delete and reinstall stuff. Eitherway, Thanks!!!
 
Have you created your own library in Kodi?

If you've added the external USB drive itself as a source & built your own library in Kodi, you should still be able to add your own user ratings, mark media as watched, or include resume points in Kodi as is anyway. That's all included. You don't specifically need to create individual .NFO files for each media file to accomplish this task.

Otherwise, the write issues are a known limitation unfortunately.

If you absolutely must do things using .NFO's you could try exporting to your_USBdrive/Android/data/org.xbmc.kodi/ & it "might" write there. Obviously, you'd still need to manually move the files after that but hopefully you won't need this.

Yeah, I have quite a few custom NFO for specials or some web downloaded videos that are not in any database, but I do all that on a PC, so saving them is not a problem. It's mainly the watched/resume points I keep losing from my Android TV Box. That was annoying.....

I'm going to try the trakt addon mentioned above, that should hopefully be a simple solution.

Thanks!
 
Yeah, I have quite a few custom NFO for specials or some web downloaded videos that are not in any database, but I do all that on a PC, so saving them is not a problem. It's mainly the watched/resume points I keep losing from my Android TV Box. That was annoying.....

I'm going to try the trakt addon mentioned above, that should hopefully be a simple solution.

Thanks!

Obviously Trakt can have its uses to find & track media that interests you etc., especially if you subscribe to multiple streaming accounts such as Netflix, Prime Video, Disney, (the list goes on). However, like anything there's both upsides & downsides. It's well worth doing some basic homework beforehand, especially regarding its privacy features & policies if you weren't already aware of them ;)!!!

FYI.... Some useful info here.... https://kinkeadtech.com/is-trakt-tv-putting-you-at-risk/

Or a quick infovideo....


And, don't get me wrong lol, I'm not trying to put you off Trakt. The upsides are obviously apparent & I have an account myself. I'm simply including the FYI so that you're aware of the flip side of the "Trakt coin" ;).

Another useful option you could also consider is a MySQL Kodi server, (both @notrui2 & I use MySQL too albeit from dedicated NAS devices). (In the simplest of terms, among many other uses & features it kind of acts like your own private/local Trakt service specifically for your Kodi library/database & clients.) Obviously no need to create a 3rd party account/profile that holds/shares all your viewing activity too. However, it's really only worth considering depending on your answer to two questions...

1. Do you have more than one Kodi device that you're separately maintaining the same library on each manually? (MySQL is still a very useful option even if you do only run one Kodi device, but the ability of having a centralised database for multiple clients is one of the main reasons many look into using it to begin with.)

2. Do you have a device you keep running 24/7? (Essentially to act as your server, such as a Win or Mac PC, or some Linux OSs' work too? (It's not absolutely essential as Kodi can even use "Wake on LAN" to wake the server as required, but it's generally preferred to have a constantly running server/device.))

If the answer is no then simply disregard the rest below lol ;). If the answer is yes, based on your usage & what you've explained so far, you may find MySQL could prove helpful.

(II would also add a 3. Do you have a larger than average library? Again, if yes, it's obviously useful there as it can potentially save a lot of time messing around rebuilding a library again & again on any new or reset Kodi devices in the future.)

(MySQL only takes about 10 mins configuration initially & you don't even need to be a technical wizard with improved step by step tutorials/guides now available. After that it requires very little attention too.).

In essence, you create one central Kodi library/database on your MySQL server device. Any new media you then add is still scraped in the exact same way as before, (it just stores the entire database on the MySQL server instead of locally on each individual Kodi device, & your Kodi devices then access that database for your library. (ONLY your Kodi clients that you specify can access that database too.)) MySQL also synchronises all of your user ratings, watched status & the resume points of any media in the library. (I.e. stop watching a partially watched movie in your lounge & you can walk through to another room & immediately pick up exactly where you left off.) It's also compatible with .NFO files if you're essentially creating your own for any media you can't actually scrape, or you can just export your entire existing library with the individual .NFO files & import that to the MySQL database if that's your preference.

No more building & manually maintaining or messing around with "the same but separate" libraries on each individual device :). If you add a new Kodi client device at any point (or need to factory reset one), you simply copy/paste in a couple of your preconfigured settings files & voila, Kodi is ready to go on that new device with your full library in seconds.

Obviously it's entirely up to you as to what you feel will best meet your individual system & requirements, it's merely another option you could consider if it'll help to improve your existing concerns & your overall experience ;).

Enjoy whichever way you go :).
 
Okay, you sold me.

Before I finished your post, I immediately deleted my trakt account after seeing that link to the article you send. Generally I'm not a paranoid freak, but it's probably better to keep that data stored locally. That's what I do now anyway, why change?!

So yeah, my set up is this:

1) All videos are stored on a 5TB USB hard drive. So yes, the library is pretty big.
2) Quite a few custom NFO file I've created that I don't want to lose.
3) I'm damn tired of "building & maintaining & messing around with "the same but separate" libraries." especially after resets or upgrades.
4) Currently I only use my Minix U9, but I often install Kodi on my PC when I do transfers to/from my USB drive, and updates to the NFO files.
5) No, I do not have 24/7 PC because I travel a lot. Or at least I did before 2020!
6) I do however, have several websites that are hosted on both dedicated and shared servers (out there in various countries). All of whom have MySQL databases ready to use. So I think that should work?

I assume that if I'm somewhere without internet, then my Kodi library would still run locally from my Minix box, but would just not be able to sync until I got a connection again?

If so, sign me up! What do I do next?
 
Kodi:
I use trakt addon (no problem for me) and mariadb , sql server (NAS) and i used before also running a website on a NAS.

Follow this thread if you want to use (kodi sql server for NAS) : (i use this)

https://theminixforum.com/index.php?threads/any-knowledgeable-kodi-mysql-users-please.1274/

Desktop windows version:

https://www.howtogeek.com/75535/how-to-sync-your-media-across-your-entire-house-with-xbmc/

Android version:


As you can see you can install on several devices.

Personal opinion:
Use/install kodi sql server on a NAS
 
Last edited:
Back
Top