Thread: Kobo Start Menu
View Single Post
Old 08-13-2014, 04:31 AM   #475
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
@embryo

Thank you for feedback. I removed the archive temporarily.

Quote:
Originally Posted by embryo View Post
There is a problem with the restore_db.msh though.

When I run it, I get a message
Code:
directory not found:
/mnt/onboard/.kobo/kbmenu/.kobo/kbmenu/backup
I found that it has:
Code:
sourcedir=$ksmroot/.kobo/kbmenu/backup
sourcefilebasename=KoboReader.sqlite"
instead of:
Code:
"sourcedir=$ksmroot/backup
sourcefilebasename=KR.sql
Right!

Quote:
Originally Posted by embryo View Post
But it must be something else also, because when I run the corrected one I get a:
Code:
usage:
restore_helper.msh
AbsolutePathToSourceDirectory
SourceFileBasename
AbsolutePathToTargetFile
I can't get out of this with the 'Close' button, so I have to reboot.
The message just means that restore_helper.msh received more or less than 3 arguments instead of exactly three arguments. Therefore, there is something wrong with the arguments passed by back_up_db.sh. The code should be:

Code:
#!/bin/sh
ksmroot=${ksmroot:-"/mnt/onboard/.kobo/kbmenu"}
#####
sourcedir=$ksmroot/backup
sourcefilebasename=KR.sql
targetfile=mnt/onboard/.kobo/KoboReader.sqlite
#####
sh $ksmroot/helpers/restore_helper.msh "$sourcedir" "$sourcefilebasename" "$targetfile"
But even if the script passes this first check, I think, there might be some other problem (I evidently messed the un-gzip part up, when embellishing the script after final testing). Maybe, you better don't try running it. I will check if I get time.

Quote:
Originally Posted by embryo View Post
With the restore_koreader_persistent.msh I get a flash (like when something is executed) but the defaults.persistent.lua stays unchanged (the backup file is not restored).
There is also no presentation of the backup files to choose from (like the older restore_db.msh).
This is strange, since the back up and the restore scripts for defaults.persistent.lua were the very last one that I have tested. And I am rather sure that I did not modify them afterwards (as was the case with some of the other scripts). But who knows? Since you were not offered a list to choose from, you could not select a backed up file, and therefore, nothing was restored. I do not see why the list was not displayed.
I will try to get rid of the mistakes. But it may take some time, since I am rather under pressure right now.

Last edited by tshering; 08-13-2014 at 04:42 AM.
tshering is offline   Reply With Quote