2021-07-07, 17:25
Hi all-
I have an existing MySQL setup hosting my library running on an Rpi4, and shared/synched between my rpi's connected to the TVs as well as my windows computers. That all works well.
Now that I've got fiber at home, I'd like to make the library available via remote protocol (FTP, I guess, probably using vstfpd) for when I travel.
Is there a simple way to do this via pathsubstitution? I could dump the library, setup FTP on the pi, then rescrape all files and repopulate the library, but that sounds silly. There is surely a way to migrate the library to FTP as well, but still, that is silly because then locally, to access wouldn't I still be accessing data remotely, that is, it would go out to my ISP then back to me instead of over my LAN straight to me?
What I'd like to do:
1) set up FTP server on Rpi4 which hosts library, allow remote password protected access to "media/pi/VIDEOS1", "media/pi/VIDEOS2", etc, where the media is hosted
2) edit advancedsettings.xml on windows laptop or fresh pi running osmc to find MySQL library at xxx.xxx.xxx.xxx (the FTP ip address) instead of 192.168.xxx.xxx (the LAN ip address)
3) edit advancedsettings.xml to say that library paths are at ftp://xxx.xxx.xxx.xxx/media/pi/VIDEOS1 instead of /media/pi/VIDEOS1 (or however it would need to read)
4) enjoy my library while out of town
Is this doable this way?
I have an existing MySQL setup hosting my library running on an Rpi4, and shared/synched between my rpi's connected to the TVs as well as my windows computers. That all works well.
Now that I've got fiber at home, I'd like to make the library available via remote protocol (FTP, I guess, probably using vstfpd) for when I travel.
Is there a simple way to do this via pathsubstitution? I could dump the library, setup FTP on the pi, then rescrape all files and repopulate the library, but that sounds silly. There is surely a way to migrate the library to FTP as well, but still, that is silly because then locally, to access wouldn't I still be accessing data remotely, that is, it would go out to my ISP then back to me instead of over my LAN straight to me?
What I'd like to do:
1) set up FTP server on Rpi4 which hosts library, allow remote password protected access to "media/pi/VIDEOS1", "media/pi/VIDEOS2", etc, where the media is hosted
2) edit advancedsettings.xml on windows laptop or fresh pi running osmc to find MySQL library at xxx.xxx.xxx.xxx (the FTP ip address) instead of 192.168.xxx.xxx (the LAN ip address)
3) edit advancedsettings.xml to say that library paths are at ftp://xxx.xxx.xxx.xxx/media/pi/VIDEOS1 instead of /media/pi/VIDEOS1 (or however it would need to read)
4) enjoy my library while out of town
Is this doable this way?