I was wondering if anyone has a script to backup xmltv,or can you simply copy the ScheduleDirect.db and the SD.xmltv to a safe place then reinstall xmltv and replace the new file with the old ones?
Thanks
Is there a backup and restore script for xmltv?
- jfabernathy
- Senior
- Posts: 577
- Joined: Wed Feb 18, 2015 2:37 pm
- Location: Raleigh, NC
Re: Is there a backup and restore script for xmltv?
I've never considered why I would want to do this. I've found that schedule information is only good moving forward and you can created and new SD database in about 5 minutes using tv_grab_zz_sdjson_sqlite and 4 statements. If the backend was already configured to use the same named SD database, then that remains unchanged.
However, backing up mythconverg, checking it, and optimizing it is something I do daily. I have it stored in my NAS.
However, backing up mythconverg, checking it, and optimizing it is something I do daily. I have it stored in my NAS.
Re: Is there a backup and restore script for xmltv?
You do not need to back it up if you are reinstalling xmltv. The sqlite databases are created when you set up the xmltv grabber by running tv_grab_zz_sdjson_sqlite and select initialize database. Unless you are doing that you will not affect your database.
-
- Senior
- Posts: 265
- Joined: Sun Jun 15, 2014 1:08 am
Re: Is there a backup and restore script for xmltv?
People in dvb land have used xmltv forever.
https://www.mythtv.org/wiki/Database_Backup_and_Restore
mythconverg_backup.pl --backup_xmltvids
mythconverg_restore.pl --restore_xmltvids --filename mythtv_xmltvid_backup-20080626211808.sql
https://www.mythtv.org/wiki/Database_Backup_and_Restore
mythconverg_backup.pl --backup_xmltvids
mythconverg_restore.pl --restore_xmltvids --filename mythtv_xmltvid_backup-20080626211808.sql
Re: Is there a backup and restore script for xmltv?
Yes,I's true you can create a new database in short order,but its choosing all the channels is the real pita.. I ended up just copying the ScheduleDirect.db to
a safe place and install xmltv, then move the new db out of the way and replace it with the already configured DB.. I ran sudo su mythtv then mythfilldatabase and it was all back to normal.. I whole point was not to have to waste so much time weeding through 2000+ channels.. I'm sure there are better ways to do it,but this worked for me..
Thanks for all the suggestions....
Greg
a safe place and install xmltv, then move the new db out of the way and replace it with the already configured DB.. I ran sudo su mythtv then mythfilldatabase and it was all back to normal.. I whole point was not to have to waste so much time weeding through 2000+ channels.. I'm sure there are better ways to do it,but this worked for me..
Thanks for all the suggestions....
Greg
-
- Senior
- Posts: 265
- Joined: Sun Jun 15, 2014 1:08 am
Re: Is there a backup and restore script for xmltv?
It is so painful that many xmltv users just try to put off ever rescanning.
I just have a backup copy of .xmltv & only less than a dozen channels of any merit.
With the continuous restacking of dvb-t/t2 in UK.. have seen some scripts mentioned in mailing list or forum or mythtv website that might have helped with that.
I just have a backup copy of .xmltv & only less than a dozen channels of any merit.
With the continuous restacking of dvb-t/t2 in UK.. have seen some scripts mentioned in mailing list or forum or mythtv website that might have helped with that.