[mythtv-users] mythtv v31 slave backend help needed

John P Poet jppoet at gmail.com
Sun Jul 19 23:18:52 UTC 2020

On Sun, Jul 19, 2020 at 4:57 PM Jim Abernathy <jfabernathy at gmail.com> wrote:

> On 7/19/20 6:06 PM, Bill Meek wrote:
> > On 7/19/20 4:29 PM, Jim Abernathy wrote:
> >> I used the following command on my Master Backend:
> >>
> >> curl --data GroupName=Default --data DirName=/srv/mythtv/recordings
> >> --data HostName=mythbuntu localhost:6544/Myth/AddStorageGroupDir
> >
> > FYI, I did the same for all the other Storage Groups in play for
> > the remote backend. E.g. Banners/Coverart/Fanart. Maybe you'd
> > want LiveTV. Also, groups only you know about - perhaps Sports.
> > Groups that exist in recording rules in other words.
> >
> > If those don't exist, everything ends up in Default on the remote
> > backend.
> >
> > I don't recall testing the above, but it seemed like the right thing
> > to do at the time.
> >
> That brings up an interesting question. I'm looking for a way to force
> certain recordings to the slave backend. Stuff like my sports that my
> wife could care less about and if that hard drive failed it wouldn't
> affect her stuff. The main backend uses RAID Mirror for all recordings.
> The remote backend doesn't. So it would be good to put those unimportant
> recording there.
> Could I define a Storage Group, like sports, where the directory only
> existed on the remote (slave) backend and then set a record rule that
> forced those to that Storage Group. At present all I've done is pick a
> preferred input that is tied to the remote backend or record 8 programs
> at once.
> Jim A

Take a look at  [Setup] -> [Video] -> [Recording Priorities] -> [Custom
You specify a mysql clause. If that clause is satisfied, then the priority
is modified by the "Priority Change" amount (plus or minus). If the
priority is increased, then the mythtv scheduler will "prefer" to schedule
the recording rule such that the clause is matched.

One example of a way to handle this, would be to increase the priority for
your slave backend when a given set of channels are being recorded:
Priority Change: 10
Clause: channel.callsign IN ('ESPN', 'ESPN2') AND capturecard.hostname =

Or, if you want to do it based on Storage Group:
Priority Change:10
RECTABLE.storagegroup = 'SportsGroup' AND

Or, by program category:
Priority Change:10
program.category = 'Sports event' AND capturecard.hostname="slavehostname"

Depending on your listing source, you may want to use category_type instead
of category:
program.category_type = 'sports' AND capturecard.hostname="slavehostname"

You may want to set multiple rules.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20200719/c5a49a66/attachment.htm>

More information about the mythtv-users mailing list