Thread: Kobo Start Menu
View Single Post
Old 08-12-2014, 05:31 PM   #473
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
Quote:
Originally Posted by embryo View Post
I'm looking for a way to increment a number in the file name of the backed up file, so that every time I run the script to backup the 'Kobo eReader.conf', the script should name the backed up file as 'Kobo eReader003.conf' if there is a 'Kobo eReader002.conf' backup already.
Of course, when I restore it, it should rename it from 'Kobo eReaderxxx.conf' to 'Kobo eReader.conf' back.

If you make it in one script, I can then modify it for all the others I might came up with.
Let us see how this works! In the uploaded archive there are three folders. Just merge them with the corresponding folders on your device.
in kbmenu/scripts/back_up and kbmenu/scipts/restore, I provide some example scripts that can serve as templates.
Note that file and path names that contain spaces need special treatment, taka a look at the back_up_Kobo_eReader.conf.sh.
There is an option to gzip the back up file, and also to show an animation (I simply use the Kobo update animation) while the file is being backed up.

I temporarily removed the archive, because it contained sloppy written scripts.

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