Restore/Backup Schedule and Favourites no longer works

There were problems with 'restore' a few years ago (https://hummy.tv/forum/threads/schedule-backup-restore-not-restoring-favourites.7585/#post-103142) and the "no such table:fav" was showing back then. I would presume it has ever been thus.
I appreciate the quoted thread is for favourites rather than backing up the schedule but thought it might help history wise.
As for reminders being restored but nothing else I would not know. I will have a play tomorrow and put a 'normal' recording first to see what happens.
 
So, using my whack it and see approach, I am fairly certain the Schedule Events restore doesn't work properly in either WebIF 1.4.8-3 or 1.4.8-4. It works fine in WebIF 1.4.8-2
In case I have made a mistake it will be best if others check if I am right.
Note even if the restore doesn't work properly, all is not lost as we can still view the backup files and then enter the events manually later. If Real-time scheduling is not available after first reboot, then it should be available on next reboot, after entering one or more schedule event.
 
I will have a play tomorrow and put a 'normal' recording first to see what happens.
I did the following:
Schedule recording for before the reminders
Backed up schedule
Restored schedule
Rebooted
Schedule empty
Restored overnight backup
Rebooted
Only reminders scheduled
Reinstated schedule and removed reminders
Backed up schedule
Restored schedule
Schedule empty
Restored overnight backup
Reminders scheduled but nothing else

So, for some reason, it 'likes' the reminders but not recordings.
 
and here is the log:

Code:
Sun Jun 14 10:32:01 2020: rsvsync starting, version 1.1.13.
Sun Jun 14 10:32:01 2020: Real-time mode.
Sun Jun 14 10:32:01 2020: Nugget is available.
Sun Jun 14 10:32:01 2020: Schedule saved.
Sun Jun 14 10:32:01 2020: Opening /var/lib/humaxtv/rsvp.db
Sun Jun 14 10:32:01 2020: Moving pending entry 0 to spare slot 5
Sun Jun 14 10:32:01 2020: Slots: +5
Sun Jun 14 10:32:01 2020: Final schedule entries: 6
Sun Jun 14 10:32:01 2020: Loading schedule information to HumaxTV binary.
Sun Jun 14 10:34:09 2020: rsvsync starting, version 1.1.13.
Sun Jun 14 10:34:09 2020: Opening /var/lib/humaxtv/rsvp.db
Sun Jun 14 10:34:09 2020: Restoring any favourites.
Sun Jun 14 10:34:09 2020: Ignoring: no such table: fav (no such table: fav)
Sun Jun 14 10:34:09 2020: Slots: 
Sun Jun 14 10:34:09 2020: Final schedule entries: 0
Sun Jun 14 10:35:15 2020: rsvsync starting, version 1.1.13.
Sun Jun 14 10:35:15 2020: Opening /var/lib/humaxtv/rsvp.db
Sun Jun 14 10:35:15 2020: Restoring any favourites.
Sun Jun 14 10:35:15 2020: Ignoring: no such table: fav (no such table: fav)
Sun Jun 14 10:35:15 2020: Slots: 
Sun Jun 14 10:35:15 2020: Final schedule entries: 0
Sun Jun 14 10:36:44 2020: rsvsync starting, version 1.1.13.
Sun Jun 14 10:36:44 2020: Opening /var/lib/humaxtv/rsvp.db
Sun Jun 14 10:36:44 2020: Moving pending entry 0 to spare slot 0
Sun Jun 14 10:36:44 2020: Moving pending entry 1 to spare slot 1
Sun Jun 14 10:36:44 2020: Restoring any favourites.
Sun Jun 14 10:36:44 2020: Ignoring: no such table: fav (no such table: fav)
Sun Jun 14 10:36:44 2020: Slots: +0,+1
Sun Jun 14 10:36:44 2020: Final schedule entries: 2
 
So, using my whack it and see approach, I am fairly certain the Schedule Events restore doesn't work properly in either WebIF 1.4.8-3 or 1.4.8-4. It works fine in WebIF 1.4.8-2
Confirmed - I'll get a fix out this afternoon

Code:
humax# jimsh
Welcome to Jim version 0.79
. require rsv.class
. rsv restore /mod/var/backup/retune.rbk
Backup version 2
Restoring scheduled events from <i>/mod/var/backup/retune.rbk</i>...
  Restoring Disable OTA (BBC Red Button)
    Service number has changed 131089 -> 327771, fixing.

  Restoring Daily morning wakeup (BBC Red Button)
    Service number has changed 131089 -> 327771, fixing.

  Restoring The Dukes of Hazzard (Forces TV)
    Service number has changed 524455 -> 589993, fixing.
/mod/webif/lib/rsv.class:590: Error: can't read "szSvcName": no such variable
in procedure 'rsv'
in procedure 'rsv' called at file "/mod/webif/lib/rsv.class", line 1244
at file "/mod/webif/lib/rsv.class", line 590
 
Also consider the next line (591): $usLcn -> $lcn ?

Pity that Jim/TCL doesn't have something like "use strict" ...

With that change as well I get a full restoration.
 
Also consider the next line (591): $usLcn -> $lcn ?
Thanks, fixed. I do run tclcheck and frink on the files before I publish, but it didn't catch these two. $usLcn is of course a valid reference in a class method, but not here.
 
I've just updated the HDR and it has WebIF 1.4.8-7.
The restore works fine now timers and favourites are restored - many thanks everyone!
 
Back
Top