Shadow file (instantaneous backup recovery)

Status: Implemented

Created by James Kanjo 30 Apr 2011 11:22

rating: +3+x

**STE **

In case STE should ever crash (take this, for example), there should be a recovery system put in place.

Perhaps every 10 seconds, STE could save a “shadow” file of the editor's current project. Whenever you close STE successfully, deleting this shadow file could be part of the final closing functions.

Upon opening STE, perhaps one of the opening functions could detect whether or not the shadow file exists. If it does, it would imply an improper STE shutdown, and could prompt the user with the choice to “recover your last project”.

This feature would be fantastic, because due to an unfortunate crash experience with STE, I've been reluctant to use it again… I don't want to risk losing well-written paragraphs again :P


wdavatar?user=leiger
leiger

30 Apr 2011 11:31. Edited 0 times. (Edit, Permalink)
I've proposed Backup files before saving as a safety/backup measure, but this is needed just as much.

There's a problem on Mac I've got to fix first too - Pressing ⌘Q is a special case for closing the program that doesn't exist on other OSes, so I'm not catching that at the moment.

This means that:

  • No work is saved when you use that to close the program
  • If this wish were to be implemented first then STE would think that it had crashed whenever it starts up again

So I've got to fix that issue first, then this one. I'll actually add the ⌘Q bug to the tracker now.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

27 May 2011 02:30. Edited 0 times. (Edit, Permalink)
I'm going to try implementing this next.

Why did I suddenly decide to do this wish? Why am I acting as if I was given a bit of encouragement…? I… err… no comment!

Included page "inc:signature" does not exist (create it now)

wdavatar?user=james-kanjo
James Kanjo

27 May 2011 02:36. Edited 0 times. (Edit, Permalink)
Woohoo! People should encourage you more often!

Included page "inc:signature" does not exist (create it now)

wdavatar?user=james-kanjo
James Kanjo

18 Jun 2011 01:06. Edited 0 times. (Edit, Permalink)
Oh, a good place to put this “Shadow File” might be in the user's Application settings folder:

root\Users\jameskanjo\Library\STE\backup.ste
C:\Documents and Settings\jameskanjo\Application Data\STE\backup.ste

This folder location would be consistent with this wish:

root\Users\jameskanjo\Library\STE\extensions.data
C:\Documents and Settings\jameskanjo\Application Data\STE\extensions.data

These locations shouldn't require administrative read/write permissions, as their read/write permissions are set to the currently logged in user.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

18 Jun 2011 04:09. Edited 1 times. (Edit, Permalink)
Just in case you weren't aware… Windows operating system file paths use a forward-slash instead ;-)

My original plan for this was to save the backup file in the same location as the original, but with a .bak extension. The only issue would be where to save it when the file hasn't got a name yet (e.g. after importing something from Wikidot). In that case I'd just save it in the same place as STE - as 99% of the time it'll be deleted again before anyone sees it.

Thoughts?

Included page "inc:signature" does not exist (create it now)

wdavatar?user=james-kanjo
James Kanjo

18 Jun 2011 04:29. Edited 0 times. (Edit, Permalink)

Just in case you weren't aware… Windows operating system file paths use a forward-slash instead ;-)

No I think you've got it wrong… Mac operating system file paths use a forward-slash instead ;-)

Oh, I see, you're planning for the future, where STE has multiple files open at once. In that case, yes absolutely, it makes sense to store it where the file is originally saved.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

18 Jun 2011 04:36. Edited 0 times. (Edit, Permalink)

No I think you've got it wrong… Mac operating system file paths use a forward-slash instead ;-)

Touché!

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

05 Jul 2011 04:10. Edited 1 times. (Edit, Permalink)
Implemented - video will be uploaded shortly & copies released to anyone that has donated money to the STE project in the past.

Non-donators will receive a copy as soon as it's been verified to be 100% bug free and I'm satisfied that it's ready for a full release.

Included page "inc:signature" does not exist (create it now)

Post Reply

Add reply on "Shadow file (instantaneous backup recovery)"

CSS Theme, Images and Code on this website are © Shane Smith 2010-2012. All forum posts by users and documentation licensed under Creative Commons BY-NC-SA 3.0 License.