<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 7, 2023 at 10:34 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 7 Nov 2023 09:41:06 -0500, you wrote:<br>
<br>
>Just curious if this is possible...<br>
><br>
>Let's say you have two mythboxes in different physical locations. Let's say<br>
>a cottage or RV. At some point, you decide you'd like to have the<br>
>recordings from box B on box A. Is it possible to import the recordings<br>
>data into the database so that the recording info appears on box A?<br>
><br>
>I realize that one could export the recordings as videos and just place<br>
>them in the Video storage group, but if you want to import them into<br>
>Recordings so you can easily edit them, is there a way to export/import<br>
>their info from the database?<br>
<br>
Yes, that is what mythexport/mythimport does. Mythexport has a web<br>
page that allows you to select the recordings to be exported, and<br>
where to store the exported files. Each recording file is accompanied<br>
by a .sql file with all the metadata from the database. Then<br>
mythimport will read the .sql file and add it the destination<br>
database, and move the recording file into a storage group directory.<br>
I use this to export recordings from my main MythTV box to drives I<br>
mount on my laptop, so I can take recordings away on holiday with me.<br>
<br>
Mythimport is easy to set up - just put its python file into<br>
/usr/local/bin. Mythexport is rather more difficult now, as there are<br>
no proper package files. I have not done it for ages, but if it still<br>
works, you would download the mythexport package and do an "apt<br>
install ./<package>.deb" command. Then you would need to download<br>
some updated files and put them over the old files in the directories<br>
they are installed in. Let me know if you would like to try this, and<br>
I will get together the updated files and put them on my web server.<br>
<br>
I have also written a "mythsgu" program that has a command "mythsgu<br>
exportdir" which creates all the export .sql files for mythimport to<br>
use for an entire directory of recording files. Then you can use<br>
"mythsgu copydir" to copy that directory over the network to the<br>
destination PC or just simply copy the entire directory to a portable<br>
drive and attach that to the destination PC. Then you can run<br>
mythimport on the directory.<br>
<br>
<a href="http://www.jsw.gen.nz/mythtv/mythimport/mythimport" rel="noreferrer" target="_blank">http://www.jsw.gen.nz/mythtv/mythimport/mythimport</a><br>
<a href="http://www.jsw.gen.nz/mythtv/mythimport/mythexport_2.2.4-0ubuntu5-jsw3.deb" rel="noreferrer" target="_blank">http://www.jsw.gen.nz/mythtv/mythimport/mythexport_2.2.4-0ubuntu5-jsw3.deb</a><br>
<a href="http://www.jsw.gen.nz/mythtv/mythsgu" rel="noreferrer" target="_blank">http://www.jsw.gen.nz/mythtv/mythsgu</a></blockquote><br><div>The mythsgu option seems to be the best for me. I'll essentially be moving all the recordings from computer B and decommissioning it once I get back to backend A. I'll be doing it in a few months, so I'll bookmark this thread. Can't wait to really explore mythsgu. <br></div></div></div>