Quote:
Originally Posted by embryo
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.