Backup Working

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]-YYYY-MM-DD-HH-MM.xcfgz in the same directory as your active image.

If the active image has never been saved, it will pop-up a message stating "The file must be saved before a backup can be made."

It can be easily accessed with Alt-F, B

EDIT: Modified to save as compressed files xcfgz.

-Rob A>

AttachmentSize
backup_working.scm3.12 KB

Comments

Error when saving backup - Gimp 2.7.4, OS Vista

I seem to get this error when I try to save the file any ideas:
Thanks

Execution error for 'Save a Backup':
Error: ( : 32701085) substring: argument 2 must be: non-negative integer

EDIT 24/01/2012 :
Answer my own question you have to save the image as a .xcf file first... then it works fine.

Thanks

My Gimp says...

No way, the script doesn't work on my WIN PC.
The message on the script-fu console is:
"> (backup-working run-mode image drawable)
Error: eval: unbound variable: run-mode"

What's this?

Thank you very much for your script, if it would work could have been my safe this morning... :)

Updated

I've updated the script to save the backups as compressed xcfgz files instead of regular xcf files.

-Rob A>

It would have been even

It would have been even better if it could save the history too.. But anyway.. very useful as it is...

as now impossible

no way even manually to save undo history, so no way to automatize save undo history with a script.

Works smoothly... :)

I really like how it saves a backup copy of the original working file name, layers and all. :) -MerryMuffinz
Syndicate content