no way to disable database backup

Bug #1094739 reported by Brian J. Murrell
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mythtv (Ubuntu)
New
Undecided
Unassigned

Bug Description

In /etc/cron.weekly/mythtv-database there is:

/usr/share/mythtv/mythconverg_backup.pl

Which ends up producing an error:

ERROR: DBBackupDirectory not specified, stopped at /usr/share/mythtv/mythconverg_backup.pl line 856.
run-parts: /etc/cron.weekly/mythtv-database exited with return code 255

if a database backup directory is not specified anywhere. But in my case, I don't specify one because I have an independent database dump and backup process attached to my nightly backups so having /etc/cron.weekly/mythtv-database do it is redundant. Yet there is no way for me, as a user/admin/operator to opt to disable this backup and instead I just get these error messages in my e-mail every week.

There really ought to be a way for me to prefer to not have the MythTV package itself do a backup if I know it's being done elsewhere.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: mythtv-database 2:0.25.3+fixes.20121124.76d9c3e-0ubuntu0mythbuntu3
ProcVersionSignature: Ubuntu 3.2.0-31.50-generic 3.2.28
Uname: Linux 3.2.0-31-generic i686
.var.log.mythtv.mythavtest.log:

.var.log.mythtv.mythtv.setup.log:

.var.log.mythtv.mythutil.log:

.var.log.mythtv.mythwelcome.log:

ApportVersion: 2.0.1-0ubuntu15
Architecture: i386
CrashDB: mythbuntu
Date: Sun Dec 30 14:17:55 2012
Installed_mythtv_dbg: 2:0.25.3+fixes.20121124.76d9c3e-0ubuntu0mythbuntu3
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: mythtv
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.mysql.conf.d.mythtv.cnf:
 [mysqld]
 bind-address=0.0.0.0
 max_connections=100
mtime.conffile..etc.mysql.conf.d.mythtv.cnf: 2012-11-28T07:22:17

Revision history for this message
Brian J. Murrell (brian-interlinx) wrote :
Revision history for this message
Mario Limonciello (superm1) wrote :

I think the easiest solution for you would be to just comment out the line in the cron job in /etc. If we ever add something else to that cron job it will do a conffile prompt on upgrade.

The other solution would be for there to be a switch in something in /etc/default/mythtv-database or /etc/default/mythtv-common or similar that enabled/disabled the backup. You would run into the same problem with conffile prompts should we add anything to that /etc/default file at any time.

What's better for you?

Revision history for this message
Brian J. Murrell (brian-interlinx) wrote : Re: [Bug 1094739] Re: no way to disable database backup

On 13-01-02 11:18 AM, Mario Limonciello wrote:
> I think the easiest solution for you would be to just comment out the
> line in the cron job in /etc.

Yeah. I've done that in the meanwhile.

> If we ever add something else to that
> cron job it will do a conffile prompt on upgrade.

Right. Yet another conffile modification to resolve on every upgrade.
There are just too many in Ubuntu in general anymore so thus my search
for an cleaner solution.

> The other solution would be for there to be a switch in something in
> /etc/default/mythtv-database or /etc/default/mythtv-common or similar
> that enabled/disabled the backup. You would run into the same problem
> with conffile prompts should we add anything to that /etc/default file
> at any time.

Right. But at least if such changes were in a more common file like
those in /etc/default, there is a hope that one could whack a bunch of
"diff"s all in one file rather than having to resolve multiple files in
a given package.

> What's better for you?

Neither. :-) But having to choose one or the other, the latter I suppose.

Cheers.

Revision history for this message
Curtis Gedak (gedakc) wrote :

While looking through the MythTV backend setup, I came across a setting to disable automatic database backups. I have seen this setting in MythTV 0.24, 0.25, and 0.26.

Use the following steps to locate this setting:

1) Start MythTV Backend Setup. In Mythbuntu the menu option is:

   Applications --> System --> Mythtv Backup Setup

2) Choose "1. General" settings

3) Navigate to the "Miscellaneous Settings" screen. On MythTV 0.24 you need to use the "Next" button twice.

      On this screen near the bottom is a setting called:

      [ ] Disable automatic database backup

4) If you change this setting, be sure to navigate to the end using the "Next" button and then finally "Finish" to ensure the setting is saved.

Hope that helps. :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.