<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Wht not a master and a slave backend ? Is it too simple ?<br>
<br>
<br>
Marc Randolph a écrit :
<blockquote
cite="mid:d38b16d80809130800j4ced85dak1682763ea8e2a4b6@mail.gmail.com"
type="cite">
<pre wrap="">On Sat, Sep 13, 2008 at 12:25 AM, <a class="moz-txt-link-rfc2396E" href="mailto:robbinsck1@gmail.com"><robbinsck1@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">In theory you could setup a user job to run at the end of a recording, have the user job run nuvexport and use the "nuv and sql"
option to export the video and SQL to directory.
Use rsync to synchronize the files, then some kind of cron job or something on destination to scan the directory and move the files to
the storage directory on the other box and import the SQL program information. Would think something like that would work in theory
at it would preserve the database info, and should be portable across different mythtv versions without doing a sql hack of your own.
</pre>
</blockquote>
<pre wrap="">You make it sound so easy, and maybe it is....I have the nuvexport to a local directory down. Next is to get automated rsync working
with a cron job and the whole trusted certificate thing. Then the tricky part, scan and import....:hmmm.
What would be a remote backend trigger letting it know, it can scan and import? If it runs mid transfer that would be bad, right?
</pre>
</blockquote>
<pre wrap=""><!---->(fixed very broken quoting)
My understanding is that rsync uses temporary filenames during
transfer (semi-hidden as they start with a period).
This means your script could simply watch the import directory... if
there is a file there (that doesn't start with a period), do
something, otherwise do nothing.
Marc
_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a>
</pre>
</blockquote>
</body>
</html>