Is there a way to recover lost file due to crash?

Asked by tjung

I did the unforgivable and neglected to save a new file. Unfortunately, Inkscape crashed and I lost the file. Is there a way to assist me in recovering?

Best regards,
Tony

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
su_v
Solved:
Last query:
Last reply:
Revision history for this message
pbhj (pbhj) said :
#1

When inkscape crashes it saves an svg file. What OS are you on?

On Linux it goes by default into your home dir I think.

Revision history for this message
su_v (suv-lp) said :
#2

Since Inkscape 0.48, the default location of the emergency save file is the same directory as the currently opened file.

See also <http://article.gmane.org/gmane.comp.graphics.inkscape.devel/34141>:
<quote>
It currently has the following locations it checks in sequence:
  - doc->base (Directory where file was saved.)
  - g_get_home_dir()
  - g_get_tmp_dir()
  - g_get_current_dir()
  - Inkscape directory
</quote>

Revision history for this message
su_v (suv-lp) said :
#3

> I did the unforgivable and neglected to save a new file

Inkscape does have an 'Autosave' feature (added in 0.47):
<http://wiki.inkscape.org/wiki/index.php/Release_notes/0.47#Autosave>

It is not enabled by default: create a directory you want to use to store the autosave files and enable it in the preferences (don't forget to enter the path for an existing directory, Inkscape can't create it itself, for now).

Also note that there is no GUI to access/restore autosaved files - you have to explicitly browse to the autosave directory and open the file you want to reuse in case you have to resort to a previous version.

Revision history for this message
tjung (tjung) said :
#4

Windows XP...don't worry if this a linux support forum.

Thanks anyways!

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of pbhj
Sent: Friday, March 18, 2011 4:34 PM
To: Tony Jung
Subject: Re: [Question #149449]: Is there a way to recover lost file due tocrash?

Your question #149449 on Inkscape changed:
https://answers.launchpad.net/inkscape/+question/149449

    Status: Open => Needs information

pbhj requested for more information:
When inkscape crashes it saves an svg file. What OS are you on?

On Linux it goes by default into your home dir I think.

--
To answer this request for more information, you can either reply to this email or enter your reply at the following page:
https://answers.launchpad.net/inkscape/+question/149449

You received this question notification because you are a direct subscriber of the question.

Revision history for this message
Best su_v (suv-lp) said :
#5

> Windows XP

If you use the current version of Inkscape, the emergency-saved file will be in the same directory as the document you had open when the crash occurred: it will have the same file name with a date/time stamp added.

Note that Inkscape can fail to create such an emergency-saved file. If Inkscape crashes, you normally get a dialog from Inkscape informing you about the crash: this dialog also includes a notification if an emergency save was done, as well as the full name of the generated file.

If the crash occurred with a document you never had saved at all (New document #), the emergency save file will most likely be located in 'C:\Documents and Settings\<yourname>\', named similar to 'New document 1.2011_03_19_14_43_16.0.svg' (file name + date + time + 0.svg).

Revision history for this message
tjung (tjung) said :
#6

Thanks for the assistance! Lesson learned the hard way.