mythconverg_restore fails to restore database

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
jmike
Newcomer
Posts: 1
Joined: Thu Nov 07, 2019 9:35 pm
United States of America

mythconverg_restore fails to restore database

Post by jmike » Thu Nov 07, 2019 10:39 pm

After installing 18.04 and MythTV 0.29 and setting directories and permissions I decided to restore the database before starting MythTV Setup. This is what I got:
$ The mythconverg_restore command with the --verbose --drop database --create database --directory /mnt/NASQNAP/MythTV/DBBackups --filename mythconverg-1317-20190607074805.sql.gz parameters.
Configuring environment:
- username: mike
- HOME: /home/mike
- MYTHCONFDIR: /home/mike/.mythtv

Database Information File specified. Ignoring all command-line arguments

Database Information File: database

The argument you supplied for the database information file is invalid.
If you were trying to specify a backup filename, please use the --directory
and --filename arguments.

ERROR: Invalid database information file, stopped at line 710.

The line "Database Information File specified. Ignoring all command-line arguments" seems to be the key but I have no idea what it means except that any information I supplied was ignored. Evidently the mythconverg_restore command ignored the --directory and --filename arguments I provided, and then complained that I did not use the --directory and --filename arguments.

I can't find any information on the Database Information File. Help!

blm-ubunet
Junior
Posts: 81
Joined: Sun Jun 15, 2014 1:08 am
Cambodia

Re: mythconverg_restore fails to restore database

Post by blm-ubunet » Fri Nov 08, 2019 12:00 am

./mythconverg_restore.pl --help --help
reveals info about the database information file vs resource file..

The database info file is a way of providing all required cmdline options in a text file as tuples.
So much cleaner & reliable to script than hacking a single cmd line up.

cmd option arguments (tuples) are mean to use "=" separator.. you used a <space> char.
./mythconverg_restore.pl --directory=/path/to/backups/ --filename=backup_file.sql.gz --verbose

And that might have confused the script into thinking you had speced a "DB information" file.

If you're just upgraded then you do not have to do anything except run mythtv-setup BEFORE starting BE etc.
Your DB backup just before upgrade is safe somewhere?

Post Reply