[mythtv-users] 5 Db rotate

Stephen Worthington stephen_agent at jsw.gen.nz
Mon Nov 24 08:35:49 UTC 2014


On Mon, 24 Nov 2014 16:10:23 +1030, you wrote:

>
>
>> On 24 Nov 2014, at 3:28 pm, "Daryl McDonald" <darylangela at gmail.com> wrote:
>> 
>> 
>> 
>>> On Sun, Nov 23, 2014 at 10:11 PM, Hika van den Hoven <hikavdh at gmail.com> wrote:
>>> Hoi Daryl,
>>> 
>>> Monday, November 24, 2014, 1:08:36 AM, you wrote:
>>> 
>>> 
>>> > On Nov 23, 2014 6:18 PM, "Bill Meek" <keemllib at gmail.com> wrote:
>>> >>
>>> >> On 11/23/2014 04:59 PM, Daryl McDonald wrote:
>>> >>>
>>> >>> I copied the script in cron.weekly into cron.daily, chmod'd it and ran
>>> >>> "sudo /etc/cron.daily/mythtv-database" and the backup went to the location
>>> >>> indicated by BE storage directories. Will this now happen automagically
>>> >>> every day? and rotate to keep the latest five?
>>> >>
>>> >>
>>> >> It will work the same way as it did when run from the command line.
>>> >>
>>> >> Note you mentioned that you *copied* the script from weekly to daily.
>>> >> That means that once a week, it will run twice. You most likely want
>>> >> to remove the weekly version. Also, your distribution is likely to
>>> >> put the weekly version back if it's version changes or perhaps during
>>> >> an upgrade. Nothing wrong, just be aware if it.
>>> >>
>>> >>
>>> >> --
>>> >> Bill
>>> >> _______________________________________________
>>> >> mythtv-users mailing list
>>> >> mythtv-users at mythtv.org
>>> >> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>>> >> http://wiki.mythtv.org/Mailing_List_etiquette
>>> >> MythTV Forums: https://forum.mythtv.org
>>> > I gksudo gedited it into the cron.daily, copy and paste from
>>> > clipboard and commented out each line in
>>> > cron.weekly/mythtv-database. This should survive an upgrade without
>>> > renewing or removing the #'s, right?
>>> 
>>> 
>>> 
>>> The best way is to even subtly changing the name. But Bill didn't mean
>>> that the new job would get removed. He meant that on any upgrade the
>>> old weekly job would get reinserted. That's why I love Gentoo, It
>>> asks more in knowing what you do, but it also doesn't try to think
>>> for you, without asking! It suggests, but always asks!
>>> 
>>> Tot mails,
>>>   Hika                            mailto:hikavdh at gmail.com
>>> 
>>> "Zonder hoop kun je niet leven
>>> Zonder leven is er geen hoop
>>> Het eeuwige dilemma
>>> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>>> 
>>> De lerende Mens
>>> 
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users at mythtv.org
>>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>>> http://wiki.mythtv.org/Mailing_List_etiquette
>>> MythTV Forums: https://forum.mythtv.org
>> 
>> Understood, but (here in Ubuntu) if the original cron.weekly/mythtv-database remains in place (commented out) and that same script is created in cron.daily/mythtv-database, then upgrades would see no void to fill, correct? problem averted, yes.
>> 
>> _______________________________________________
>
>Probably not (but I don't know). I'm guessing more likely it would see that the file is different and give you a "replace / backup and replace / keep original" set of options to choose from instead (at least in cron.weekly, assuming you retained the original file name). It would leave cron.daily untouched as far as your new file is concerned.
>
>Maybe one of the Mythbuntu devs will comment?

I believe the /etc/cron.weekly/mythtv-database file is created by the
Mythbuntu Control Center when you tell it to turn on backups.  So
telling it to turn off backups should fix the problem of the extra
weekly backup - MCC will likely delete the file.


More information about the mythtv-users mailing list