Yea, and I use that, but due to re-orging everything massively I now have about 60 - 80 unliked files in my /mnt/video1 that I need to get links back to in my /video directory so they're again watchable through myth. I wasn't sure if there was a fast way (I did it once with a shell for loop) to just create the links.
<br><br>--Doug<br><br><div><span class="gmail_quote">On 5/21/07, <b class="gmail_sendername">Michael T. Dean</b> <<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 05/21/2007 12:22 PM, Douglas Wagner wrote:<br>> Got a frontend/backend on one system, have a NAS that is serving<br>> as active storage on another system across a 100bt wired link.<br>><br>> Recordings go to my local /video directory and will then be moved
<br>> across the wire (via myth_archive_job.pl) to one of the two nas<br>> recording areas (Video 1 or Video 2). Obviously this creates sim<br>> links in the local /video directory. MythTV is setup to "follow sim
<br>> links" upon delete so all is good there.<br>><br>> My question surrounds mythrename.pl. If I were to want to run this<br>> guy to re-name shows, will he work "through sim links" or would I have
<br>> to run this guy on the NAS box and then some way re-name the created<br>> sim links?<br><br>I /highly/ recommend you never rename MythTV recording files. Instead,<br>use "mythrename.pl --link" to create "pretty" symlinks to the recording
<br>files (or recording links).<br><br>> Maybe the better question is: considering the setup i've explained<br>> above, what's the best way to re-name the 1092_20070516120000.mpg<br>> files that I get to something slightly more meaningful so that I can
<br>> access the show in the local /video directory by a name that is<br>> comprehensible (yet still play these things through myth). I really<br>> don't care what the file name on the NAS is, so long as MythTV can get
<br>> rid of it upon delete. If the answer is to have a sim link in /video<br>> of a valid name pointing to a 1092.....file on the nas, i'm good with<br>> this so long as Myth can properly delete.<br><br>Put the links in a separate directory so you don't have all the other
<br>"junk" in there (i.e. PNG thumbnail images, ugly-named recordings,<br>etc.). Also, "mythrename --link" will delete /all/ symlinks under the<br>provided link directory (so it would delete the ugly-Myth-named links as
<br>well as the pretty mythrename links, leaving orphaned recordings).<br><br>And, that's what deletes the old symlinks--mythrename.pl, not Myth. So,<br>for example, I run mythrename.pl --link on a cron job at 1 and 31 past
<br>the hour (nearly all shows I record start on the half hour). Sure, I<br>may have a recording or two for which I don't have a link or for which I<br>have a link right after I delete the recording--for up to half an
<br>hour--but if I really need to, I can always run "mythrename.pl --link"<br>myself.<br><br>In fact, though, I never run mythrename.pl directly. I have a little<br>"wrapper" script that creates various "views" using different formats
<br>for the names (attached). That means that each view--when sorted<br>alphabetically (or ASCII-betically, as the case may be)--gives me<br>differently-sorted recordings lists. The list sorted by original<br>airdate lets me know what order to watch the episodes. The list sorted
<br>by recording starttime lets me easily find the newest recordings. ...<br><br>> Also as another side item (unrelated) anyone have a fast for loop<br>> command to take all the *.mpg files in /mnt/video1 and link them to
<br>> /video? I've done this before but I forget the command I used.<br><br>Have you looked at myth_archive_job.pl (which has nothing to do with<br>MythArchive, BTW)?<br><br>Mike<br><br>_______________________________________________
<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br><br><br></blockquote></div><br>