This is a simple script I wrote to help make backups when working on a large image.
There are no parameters.
It will save a backup copy of your active image as [imagename-ext]-YYYY-MM-DD-HH-MM.xcfgz in the same directory as your active image.
The script has been modified to allow a limit to the number of backups. The default has been set as 5.
To change this edit line 41 of the script:
(maxbackups 5) ; Change this to define the number of backup files to keep!!!
to whatever you want. Set it to 0 for the old behaviour (no limit)