[mythtv-users] duplicating a mythtv system, sort of

Stephen Worthington stephen_agent at jsw.gen.nz
Tue Nov 14 04:05:47 UTC 2017


On Mon, 13 Nov 2017 19:53:06 +0000, you wrote:

>I have a mythbuntu 0.28 system backend at home that is working great.  I want to create a smaller one and put it in my RV for when I’m traveling.  Both will be completely for OTA tv recording.
>
>How can I transfer recording between the 2 systems?  When I’m at home I could bring the RV system in an plug it into the same subnet as the home mythtv system.  I know how to move the files around between the systems, but what about the database that keeps the list of recordings?  I know that if I just copy the files, you don’t see them on the receiving system.
>
>This is probably easier if I do all the recordings by doing a backup and restore of the database.  But what about just doing some of the recordings. I have a user job that can be used to send TV to NAS, but I think that is overkill.
>
>Ideas?
>
>Jim A

I have a laptop set up like this for use when I am away from home, and
I also transfer recordings from my MythTV box (which has a satellite
pay TV subscription) to my mother's MythTV box.  I use Mythexport's On
The Go option to export the recordings, and Mythimport to import them.
I had to rewrite Mythimport to make it work with the database changes
in 0.28, but it works with v29 also.  The updated versions are on my
personal web server:

http://www.jsw.gen.nz/mythtv/mythimport.html

You use Mythexport's web page to select which files to export and
where to put them.  For transfer to my laptop, I attach one of the two
external hard disks it uses for recordings temporarily on my main
MythTV box and get Mythexport to store the recordings to an "import"
directory on that drive.  Mythexport stores a .sql file with all the
necessary database entries in it, alongside a copy of the recording
file (.mpg or .ts).  Then when the drive is mounted on the laptop, I
go to the import directory and run Mythimport from there.  It reads
the .sql file, changes anything that needs it to be compatible with
the local database (the recordedid value), and inserts the data for
the recording into the laptop database.  Then it moves the recording
file to the storagegroup directory on the same drive.

You can also tell Mythexport to store over a network connection (to a
network mounted drive), or to a USB stick or anywhere else you want
the exported files.


More information about the mythtv-users mailing list