<p dir="ltr"><br>
</p>
<br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 30, 2015, 6:40 AM 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 11:55 PM, Mark Perkins <span dir="ltr"><<a href="mailto:perkins1724@hotmail.com" target="_blank">perkins1724@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="auto"><div><div><div><br><br><br></div><div><br>On 30 Oct 2015, at 11:42 am, Daryl McDonald <<a href="mailto:darylangela@gmail.com" target="_blank">darylangela@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><br><div class="gmail_extra"><br><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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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>Yes I have Mythconverg running with a five backup logrotate </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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>Previously I used MCC to generate "Mythbuntu backups, not Mythconverg backups</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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>and they are translocated, my  bad </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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>Yes compressed and one for each of the last ten days </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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>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><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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>I'd rather not reinstall MCC just to stop that process if there is a command line solution. </div></div><br></div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br></div></blockquote><br><div>Daryl I assume you mean 10 backups in a *folder* not *file*?</div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Yes, or more properly a directory. </div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="auto"><div><br></div><div>What is the location of that folder (containing the backups)?</div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>/media/storage/Dropbox, I caused this through MCC quite some time ago, and now that I see eleven ".tar.gz's" in there I bet they're not rotating, but accumulating as a result of a "rsync restore" I did, I'd guess eleven days ago. </div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="auto"><div><br></div><div>What is the output of:</div><div>ls -al /etc/cron*</div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> trieli@mythtv:~$ ls -al /etc/cron*</div><div>-rw-r--r-- 1 root root  722 Feb  9  2013 /etc/crontab</div><div><br></div><div>/etc/cron.d:</div><div>total 32</div><div>drwxr-xr-x   2 root root  4096 Apr 16  2014 .</div><div>drwxr-xr-x 142 root root 12288 Oct 30 09:30 ..</div><div>-rw-r--r--   1 root root   188 Feb 19  2014 anacron</div><div>-rw-r--r--   1 root root   139 Oct 20  2014 mythbuntu-bare</div><div>-rw-r--r--   1 root root   510 Jul  7  2014 php5</div><div>-rw-r--r--   1 root root   102 Feb  9  2013 .placeholder</div><div><br></div><div>/etc/cron.daily:</div><div>total 112</div><div>drwxr-xr-x   2 root root  4096 Oct 28 13:15 .</div><div>drwxr-xr-x 142 root root 12288 Oct 30 09:30 ..</div><div>-rwxr-xr-x   1 root root   311 Feb 19  2014 0anacron</div><div>-rwxr-xr-x   1 root root   625 Jul 22  2014 apache2</div><div>-rwxr-xr-x   1 root root   376 Apr  4  2014 apport</div><div>-rwxr-xr-x   1 root root 15481 Apr 10  2014 apt</div><div>-rwxr-xr-x   1 root root   355 Jun  4  2013 bsdmainutils</div><div>-rwxr-xr-x   1 root root   384 Mar 23  2014 cracklib-runtime</div><div>-rwxr-xr-x   1 root root   256 Mar  7  2014 dpkg</div><div>-rwxr-xr-x   1 root root  2211 Jan  6  2014 locate</div><div>-rwxr-xr-x   1 root root   372 Jan 22  2014 logrotate</div><div>-rwxr-xr-x   1 root root  1261 Apr 10  2014 man-db</div><div>-rwxr-xr-x   1 root root   435 Jun 20  2013 mlocate</div><div>-rwxr-xr-x   1 root root  2069 Feb  3  2014 mythexport</div><div>-rwxr-xr-x   1 root root   448 Mar 25  2015 mythtv-database</div><div>-rwxr-xr-x   1 root root  1110 Feb  6  2015 ntp</div><div>-rwxr-xr-x   1 root root   831 Nov 22  2014 optimize_mythdb</div><div>-rwxr-xr-x   1 root root   831 Feb 17  2015 <a href="http://optimize_mythdb.pl" target="_blank">optimize_mythdb.pl</a></div><div>-rwxr-xr-x   1 root root   249 Feb 16  2014 passwd</div><div>-rw-r--r--   1 root root   102 Feb  9  2013 .placeholder</div><div>-rwxr-xr-x   1 root root  2417 May 13  2013 popularity-contest</div><div>-rwxr-xr-x   1 root root   214 Apr  9  2014 update-notifier-common</div><div>-rwxr-xr-x   1 root root   328 Jul 18  2014 upstart</div><div><br></div><div>/etc/cron.hourly:</div><div>total 20</div><div>drwxr-xr-x   2 root root  4096 Apr 16  2014 .</div><div>drwxr-xr-x 142 root root 12288 Oct 30 09:30 ..</div><div>-rw-r--r--   1 root root   102 Feb  9  2013 .placeholder</div><div><br></div><div>/etc/cron.monthly:</div><div>total 24</div><div>drwxr-xr-x   2 root root  4096 Apr 16  2014 .</div><div>drwxr-xr-x 142 root root 12288 Oct 30 09:30 ..</div><div>-rwxr-xr-x   1 root root   313 Feb 19  2014 0anacron</div><div>-rw-r--r--   1 root root   102 Feb  9  2013 .placeholder</div><div><br></div><div>/etc/cron.weekly:</div><div>total 48</div><div>drwxr-xr-x   2 root root  4096 Oct 26 13:15 .</div><div>drwxr-xr-x 142 root root 12288 Oct 30 09:30 ..</div><div>-rwxr-xr-x   1 root root   312 Feb 19  2014 0anacron</div><div>-rwxr-xr-x   1 root root   730 Feb 23  2014 apt-xapian-index</div><div>-rwxr-xr-x   1 root root   427 Apr 16  2014 fstrim</div><div>-rwxr-xr-x   1 root root   771 Apr 10  2014 man-db</div><div>-rwxr-xr-x   1 root root   448 Apr 17  2014 mythtv-database</div><div>-rwxr-xr-x   1 root root   448 Apr 17  2014 mythtv-database~</div><div>-rw-r--r--   1 root root   102 Feb  9  2013 .placeholder</div><div>-rwxr-xr-x   1 root root   211 Apr  9  2014 update-notifier-common</div><div>trieli@mythtv:~$ </div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><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><br>
<br></blockquote></div></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">/etc/cron.d/mythbuntu-bare is the file. You can delete that</p>
<div dir="ltr">-- <br></div><div dir="ltr">Thomas Mashos</div>