Quote:
Originally Posted by tshering
I am not sure what exactly you are asking for. Two scripts for backing up 'defaults.persistent.lua' and 'cr3.ini'? Or a kind of general applicable template?
|
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.