[mythtv-users] How to automatically copy recordings from slave to master backend?
Michael T. Dean
mtdean at thirdcontact.com
Tue Oct 2 18:07:38 UTC 2007
On 10/02/2007 12:26 PM, Jerry Rubinow wrote:
> The setup:
>
> Computer in basement with master backend, HD tuner card.
> Computer in family room with frontend and slave backend, and analog
> tuner card (PVR-500). This card also gets s-video from the STB, which
> is why the card has to be in the frontend rather than in the master
> backend.
> The master backend video directory is nfs mounted on the frontend/slave.
>
> The problems:
>
> 1. When the slave backend is recording, the remote stops working for
> the duration of the record.
> 2. Trying to play a slave backend recording while it is still in
> progress does not work.
>
> I believe both of these problems are due to insufficient resources.
> In 1, the homebrew serial port ir sensors interrupts aren't getting
> serviced, and in 2, it can't handle the network transfer of the
> program going on in two directions at once (being written to the MBE's
> drive over the network, at the same time it is being read over the
> network for playback).
>
> The solution?:
>
> I'm thinking that since the frontend machine doesn't have a huge
> drive, it can probably hold whatever I want to record in any given
> day, but not much more than that. So stop NFS mounting the MBE's
> drive and record locally. Then run a job in the middle of the night
> that copies all the local recordings to the MBE and adjusts the
> database accordingly.
>
> I probably want some post-record job that updates a table of "things
> to be copied" so it doesn't try to copy anything that's still being
> recorded.
>
> Updating a list of programs to copy, easy. Having a cron job to do
> the copy, easy. Updating database - ???. I see I'd probably have to
> change the hostname field in the recorded table for each copied
> program. What else would I need to update?
If you're using 0.20(.x|-fixes), myth_archive_job.pl is probably the
best starting point. In SVN trunk, just move the file.
Mike
More information about the mythtv-users
mailing list