[mythtv-users] mythconverg_restore problem
Michael T. Dean
mtdean at thirdcontact.com
Sat Dec 6 03:10:06 UTC 2008
On 12/05/2008 08:39 PM, Jack McGee wrote:
> Yes, I used mythconverg_backup.pl to create the backup(s).
>
> Here the output:
>
> $ perl mythconverg_restore.pl --username=root --verbose
>
...
> Checking configuration.
>
> No filename specified. Attempting to find the newest database backup.
> Using database backup file:
> /mnt/bigboymnt/mythbackup/mythconverg_restore.pl
>
Heh. That explains it. The filename used for the scripts was changed
before they were checked in, so I never could have encountered the issue
you're seeing during testing.
In the event that you don't specify a filename for the backup file,
mythconverg_restore.pl checks for all the files in the backup directory
whose name starts with the database name ("mythconverg"). Now that the
script name starts with the database name, it matches, and when sorted
by filename, it happens to come before the actual backup file's
filename. So, the script uses itself (or, if you had it in the same
directory, it would probably use mythconverg_backup.pl) as the backup file.
So, for now, either specify --filename <backupfilename> to do the
restore or--probably better--just move mythconverg_backup.pl and
mythconverg_restore.pl out of your DBBackupDirectory (perhaps putting it
where it will be installed by default when 0.22 is released--in
/usr/{,local/}share/mythtv --or in ~/bin or even /usr/local/bin ).
I'll make a patch that excludes the backup and restore script files from
selection.
Thanks for the report.
Mike
More information about the mythtv-users
mailing list