<p dir="ltr"><br>
On Nov 22, 2014 10:08 AM, "Stephen Worthington" <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br>
><br>
> On Sat, 22 Nov 2014 09:23:31 -0500, you 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 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>
> In Mythbuntu, the backups are normally done weekly by a cron job that<br>
> is installed by one of the Mythbuntu packages:<br>
><br>
>   /etc/cron.weekly/mythtv-database<br>
><br>
> That file contains this in 14.04:<br>
><br>
> #!/bin/sh<br>
> # /etc/cron.weekly/mythtv-database script - check and backup<br>
> mythconverg tables<br>
> # Copyright 2005/12/02 2006/10/08 Paul Andreassen<br>
> #                      2010 Mario Limonciello<br>
><br>
> set -e -u<br>
><br>
> DBNAME="mythconverg"<br>
> DEBIAN="--defaults-extra-file=/etc/mysql/debian.cnf"<br>
><br>
> /usr/bin/mysqlcheck $DEBIAN -s $DBNAME<br>
><br>
> /usr/share/mythtv/<a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a><br>
><br>
> /usr/bin/logger -p <a href="http://daemon.info">daemon.info</a> -i -t${0##*/} "$DBNAME checked and<br>
> backedup."<br>
><br>
> # End of file.<br>
><br>
><br>
> I have put a modified copy of that file in /etc/cron.daily to also do<br>
> daily backups to another PC on my network:<br>
><br>
> #!/bin/sh<br>
> # /etc/cron.weekly/mythtv-database script - check and backup<br>
> mythconverg tables<br>
> # Copyright 2005/12/02 2006/10/08 Paul Andreassen<br>
> #                      2010 Mario Limonciello<br>
><br>
> # JSW Modified for /etc/cron.daily backups to a network drive.<br>
><br>
> set -e -u<br>
><br>
> DBNAME="mythconverg"<br>
> DEBIAN="--defaults-extra-file=/etc/mysql/debian.cnf"<br>
><br>
> # Debug:<br>
> /usr/bin/logger -p <a href="http://daemon.info">daemon.info</a> -i -t${0##*/} "Debug: $DBNAME<br>
> cron.daily checking started."<br>
><br>
> /usr/bin/mysqlcheck $DEBIAN -s $DBNAME<br>
><br>
> # Debug:<br>
> /usr/bin/logger -p <a href="http://daemon.info">daemon.info</a> -i -t${0##*/} "Debug: $DBNAME<br>
> cron.daily checking finished, backup starting."<br>
><br>
> /usr/share/mythtv/<a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a> --directory<br>
> "/mnt/savaidh/ldrive/Backups/MythTV_db_backup/mypvr"<br>
><br>
> /usr/bin/logger -p <a href="http://daemon.info">daemon.info</a> -i -t${0##*/} "$DBNAME checked and<br>
> backedup."<br>
><br>
> # End of file.<br>
><br>
><br>
> The real work is done by the /usr/share/mythtv/<a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a><br>
> script, which is where the default rotation is set.  Use<br>
><br>
>   /usr/share/mythtv/<a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a> --help<br>
><br>
> and<br>
><br>
>   /usr/share/mythtv/<a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a> --help --help<br>
><br>
> for help.  It looks like there is a --rotate option to override the<br>
> default value.<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">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
> <a href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
> MythTV Forums: <a href="https://forum.mythtv.org">https://forum.mythtv.org</a></p>
<p dir="ltr">Default value is acceptable, mythconverg is not backing up on its own, I have to run the script, I can't confirm or deny whether it is rotating or not at this point. Do I need to disable MCC backups for mythconverg to run automatic?<br>
</p>