[mythtv-users] Loosely coupled slave FE/BE

Matt Rude mythtv at mattrude.com
Thu Nov 30 18:48:38 UTC 2006


Brad DerManouelian wrote:
> On Nov 30, 2006, at 8:24 AM, White Joe wrote:
> 
>> I am in the planning stages of putting together a second MythTV FE/BE 
>> to go in the kitchen.  Its gonna be a Mini-ITX box attached to an LCD 
>> monitor.  The plan is to make it portable so that we can easly take it 
>> on vacations or down to the clubhouse to play recorded shows and DVDs 
>> for the kids' sleepovers.  I will need to write some scripts that copy 
>> designated vids to the slave, detach it from the network, bring a 
>> local DB on line, register the tranferred vids and do anything else 
>> that promotes it to master status.  I don't see any HOWTOs or many 
>> posts refering to the idea of decoupling.  But before I got started, I 
>> wanted to ask if its already been done.
>>  
>> Thanks,
>> jw
> 
> It's been discussed in the past for the purposes of a car-installed Myth 
> system or a laptop that will be a backend when away from home. I don't 
> believe anyone has actually implemented this, but I think MythArchive 
> will give you a good headstart on picking programs and putting them into 
> a format that you could then restore from the MythArchive menu. I would 
> think you'd just need to switch the db on change your backend IP to the 
> local machine (or edit a host entry to fake it into thinking the local 
> machine is the IP address that used to be your real backend - this might 
> be easier), and initiation the MythArchive restore.
> 

If you have the MySQL server running on your SlaveBE I dont see why you 
can't just make a new mysql.txt and have the loopback address in there 
(127.0.0.1) now just switch the files

cp mysql.txt.nework mysql.txt
cp mysql.txt.local mysql.txt

Just to be clean you can even create a rule in iptables that will block 
mythtv and mysql from talking to the network when you are switched to 
the local state.

To me this looks like you could make a nice switch-to-local script run 
it then just import the recordings.
Anyone know if you can script the mytharchive import program to fine the 
recordings and import them into the database?

If you get anywhere with this I would love to see it or even help.

Thanks
-Matt



More information about the mythtv-users mailing list