<p dir="ltr"><br>
</p>
<br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 29, 2015, 6:11 PM Daryl McDonald <<a href="mailto:darylangela@gmail.com">darylangela@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 29, 2015 at 8:35 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><div>On Thu, 29 Oct 2015 18:48:22 -0400, you wrote:<br>
<br>
>Greetings Mythizens, in a manual housekeeping effort I've discovered a file<br>
>with ten recent mythbuntu db backups in it, I don't use Mythbuntu Control<br>
>Center any more so these are dead weight. Can anyone offer a suggestion on<br>
>stopping this log rotate process cleanly, I imagine deleting the target<br>
>file would cause subterranean problems at some point. I'm quite happy with<br>
>the Mythconverg backups and I'm running mythtv 0.27 fixes in a Ubuntu 14.04<br>
>desktop environment.  Grazie.<br>
<br>
</div></div>As far as I know, the only backup rotation is done by the backup<br>
script:<br>
<br>
  /usr/share/mythtv/<a href="http://mythconverg_backup.pl" rel="noreferrer" target="_blank">mythconverg_backup.pl</a><br>
<br>
which is called from:<br>
<br>
  /etc/cron.weekly/mythtv-database<br></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Yes I have Mythconverg running with a five backup logrotate </div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
All it does is to do individual backups to files with the date in the<br>
name, and then delete the oldest when it does a new backup and there<br>
are too many backups already present in the destination directory.<br>
<br>
There is no software I know of in Mythbuntu 14.04 that will create a<br>
file that has multiple backups in it.<br></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Previously I used MCC to generate "Mythbuntu backups, not Mythconverg backups</div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The standard place the backups are put is:<br>
<br>
  /var/lib/mythtv/db_backups/<br></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>and they are translocated, my  bad </div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If they are anywhere else, it is something you have done.  I have set<br>
up daily backups to a network drive, and moved my normal weekly<br>
backups to a different drive on my backend.<br>
<br>
Exactly how are the multiple backups stored in the file you found? Are<br>
they compressed in some form of archive file?  What is the timestamp<br>
on the file?  Making backups, or archiving them, takes a while, so you<br>
may be able to find out what is doing it by being around at the time<br>
that file is altered, and getting a full process list, and seeing what<br>
is actually creating the file:<br></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Yes compressed and one for each of the last ten days </div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
  ps -ef >processes.txt<br>
<br>
If it is happening at a bad time of day, you can schedule that command<br>
to happen. </blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Timing is not the issue I just want to eradicate the process creating them because the Mythconverg backups are sufficient and the Mythbuntu unnecessary.</div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> To do that, I use a little script called sleepuntil that I<br>
found on the net.  I have it in /usr/local/bin:<br>
<br>
#!/bin/bash<br>
set -o nounset<br>
<br>
### // Sleep until some date/time.<br>
# // Example: sleepuntil 15:57; kdialog --msgbox "Backup needs to be<br>
done."<br>
<br>
<br>
error() {<br>
  echo "$@" >&2<br>
  exit 1;<br>
}<br>
<br>
NAME_PROGRAM=$(basename "$0")<br>
<br>
if [[ $# != 1 ]]; then<br>
     error "ERROR: program \"$NAME_PROGRAM\" needs 1 parameter and it<br>
has received: $#."<br>
fi<br>
<br>
<br>
CURRENT=$(date +%s)<br>
TARGET=$(date -d "$1" +%s)<br>
<br>
SECONDS=$(($TARGET - $CURRENT))<br>
<br>
if [[ $SECONDS < 0 ]]; then<br>
     error "You need to specify in a different way the moment in which<br>
this program has to finish, probably indicating the day and the hour<br>
like in this example: $NAME_PROGRAM \"2009/12/30 10:57\"."<br>
fi<br>
<br>
sleep "$SECONDS"<br>
<br>
# // End of file<br>
<br>
<br>
So you would do a command like:<br>
<br>
sleepuntil 03:00; ps -ef >processes.txt<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I'd rather not reinstall MCC just to stop that process if there is a command line solution. </div></div><br></div></div>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div><p dir="ltr">There is a way to disable it. I'm not home right now, but look in the cron directories for a Mythbuntu backup file. If I had to guess, /etc/cron.d/mythbuntu-backup</p>
<p dir="ltr">You should be able to safely delete that file.</p>
<div dir="ltr">-- <br></div><div dir="ltr">Thomas Mashos</div>