<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 22, 2014 at 8:44 PM, Stephen Worthington <span dir="ltr"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sat, 22 Nov 2014 17:57:27 -0500, you wrote:<br>
<br>
>On Sat, Nov 22, 2014 at 12:02 PM, Bill Meek <<a href="mailto:keemllib@gmail.com">keemllib@gmail.com</a>> wrote:<br>
><br>
>> On 11/22/2014 08:23 AM, Daryl McDonald wrote:<br>
>><br>
>>> Greetings Mythizens, I remember in previous setups having the 5 latest Db<br>
>>> backups kept in /var/lib/mythtv/db_backups. That's not happening now, I am<br>
>>> getting mythbuntu backups as a result of MCC, but they don't rotate, I go<br>
>>> in and cull once in a while. From looking at the wiki I have the backup<br>
>>> and<br>
>>> restore scripts in /usr/share/mythtv, and I echo'd the location I want the<br>
>>> backups to land in, my question is how do I set the frequency to daily and<br>
>>> select the time? IIRC this used to happen without a cron job.<br>
>>> Sort of related the box doesn't wakeup for Db backups or MFDB's is this<br>
>>> even possible?     TIA Daryl<br>
>>><br>
>><br>
>> The only automatic backups done by the backend are when the schema changes,<br>
>> or for most users, when they upgrade. (I'd like to know if I'm wrong about<br>
>> that.)<br>
>><br>
>> Like the other replies, I too use a cron script. So, I'd run it manually<br>
>> and see what the output says. Probably like this:<br>
>><br>
>>     sudo /etc/cron.weekly/mythtv-database<br>
>><br>
>> but your path/name may be different, so if the above doesn't work, look<br>
>> for the right answer in /etc/cron*/*myth* . Don't just run any file you<br>
>> find, look at its contents to be sure it's doing a backup.<br>
>><br>
>> --<br>
>> Bill<br>
>><br>
>> _______________________________________________<br>
>> mythtv-users mailing list<br>
>> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
>> <a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
>> <a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
>> MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
>><br>
><br>
>OK, so now I do find weekly mythconverg backups in<br>
>/media/storage/mythtv/db_backups, I was certain that folder was empty last<br>
>time I checked but there are five backups in there a week apart. How do I<br>
>make these daily? And how do I make them go to<br>
>/media/storage2/mythtv/Dropbox?<br>
<br>
</div></div>As I already posted, in Mythbuntu just copy (or move) the<br>
/etc/cron.weekly/mythtv-database script from there to /etc/cron.daily<br>
to make the backups daily.  And see my modified<br>
/etc/cron.daily/mythtv-database script for how to add the --directory<br>
option for changing the directory it stores to.  I have both the daily<br>
and weekly backups, with the weekly ones going to the local hard<br>
drives and the daily ones going to another PC on my network.  If you<br>
have both daily and weekly backups, then they probably should be<br>
stored in different directories.<br>
<br>
I took a look at the source code of <a href="http://mythconverg_backup.pl" target="_blank">mythconverg_backup.pl</a>, and if the<br>
backup directory is not specified on the command line with the<br>
--directory option, and is not specified in the ~/.mythtv/backuprc<br>
file with the DBBackupDirectory option, then the script looks up the<br>
database and takes the directory from the "DB Backups" entry in the<br>
storagegroup table.  If there is no "DB Backups" entry in the<br>
storagegroup table, it then looks up the "Default" entries in the<br>
storagegroup table and uses the first of those which actually exists<br>
as a directory as where the backups will go.  The "Default" entries<br>
are the storagegroups where you have specified your recordings are to<br>
be stored if you do not specify a specific storagegroup in your<br>
recording rules.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a></div></div></blockquote><div><br></div><div>Thanks for the reply Stephan, I have looked into your adaptations of the scripts, but unfortunately I don't read/write code very well at this point, however I do think, and correct me if I'm wrong, that moving the weekly script to the daily location, chmod'ng it and running it as SU will accomplish my goal of having cloud available backups. I've directed them to a Dropbox folder. Do you follow, and agree?   Daryl</div></div><br></div></div>