It is currently Tue Aug 11, 2026 3:04 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Autosave
PostPosted: Mon Jan 10, 2011 12:29 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
I saw the issues around perl and windows to try to get the autosave.pl (http://registry.gimp.org/node/20875) working.

Just wanted to point out a couple options.

autosave.py is a python script (really hacky) that will save all open images on a periodic basis. You can only start it, there is no status, and it runs in the BG, saving files with temp names to your windows temp folder (C:\Documents and Settings\username\Local Settings\Temp). The code is here: http://www.mail-archive.com/gimp-develo ... 18118.html
(this could be cleaned up and made nicer to give the same options as the perl version, imoo, if someone had the time.)

Backup Working is scheme script written by yours truly that I've been using for three years now. http://registry.gimp.org/node/14246
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.
It can be easily accessed with Alt-F, B

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Autosave
PostPosted: Mon Jan 10, 2011 1:27 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
RobA wrote:
(this could be cleaned up and made nicer to give the same options as the perl version, imoo, if someone had the time.)

It would seem at a minimum that the Python script should check the dirty status of the image so that leaving GIMP open overnight doesn't fill up one's hard drive.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Autosave
PostPosted: Tue Jan 11, 2011 11:46 am  (#3) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16155
Thanks for the links Rob. Ill give them both a try and see how it goes.
Saulgoode thanks for bringing that point up. I def wouldn't want to wake up
to that.

_________________
Image


Top
 Post subject: Re: Autosave
PostPosted: Tue Jan 11, 2011 1:22 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
saulgoode wrote:
RobA wrote:
(this could be cleaned up and made nicer to give the same options as the perl version, imoo, if someone had the time.)

It would seem at a minimum that the Python script should check the dirty status of the image so that leaving GIMP open overnight doesn't fill up one's hard drive.


The python script seems to delete the old ones before new ones are created, so there is only one per open image.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Autosave
PostPosted: Tue Jan 11, 2011 1:45 pm  (#5) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16155
That's good to know.
The python script seems to work fine so far.

Thanks again Rob

_________________
Image


Top
 Post subject: Re: Autosave
PostPosted: Fri Mar 02, 2012 12:53 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Bit of thread necromancy-

I've updated my backup working script so it can now (optionally) limit the number of backups. The setting is an option that has to be made by editing the script, explanation is at the GPR: http://registry.gimp.org/node/14246

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Autosave
PostPosted: Fri Mar 02, 2012 1:11 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Thanks RobA!

I do not understand how this kind of useful things are not integrated into Gimp by default. Do any Gimp developer reading the forums and taking notes?

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: Autosave
PostPosted: Fri Mar 02, 2012 2:45 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2012
Posts: 583
Is it possible that in the same way Inkscape works, at any possible failure of the program, it creates at that point a back up of the file being worked on at that exact moment in GIMP?

_________________


"In the face of adversity, there's three things: fly, freeze or fight; We're choosing to fight..."- Guy Boucher, Tampa Bay Lighting Head Coach


Top
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


cron

* Login  



Powered by phpBB3 © phpBB Group