#54 Offer to open a recent backup if gnotime-data.xml is corrupt


For whatever reason it seems that gnotime-data.xml is blanked (? - true? please correct if wrong in assumptions) when gnotime is running since following a (possibly) unrelated system hang starting gnotime on reboot brings up:

Cannot open the project data file
Do you want to continue?

Inspection reveals that the xml file is indeed blank. It would seem sensible for gnotime to back up that xml file on startup, as even an incomplete backup is preferable to the potential loss of data - a whole bunch of xml files remain in gnotime's folder but I have no idea how to recover the data.


  • Goedson Teixeira Paixao

    Gnotime does periodic backups of its data file. You should find them named as /home/scott/.gnome2/gnotime.d/gnotime-data.xml.X.Y where X and Y are digits. Just copy one of these backups to gnotime-data.xml and you should have your data (hopefully in a very recent version) back.

  • Goedson Teixeira Paixao

    • labels: 487411 -->
    • summary: No recovery from system hang --> Offer to open a recent backup if gnotime-data.xml is corrupt
  • Goedson Teixeira Paixao

    • assigned_to: nobody --> goedson
  • Anonymous

    Anonymous - 2009-12-01

    Thanks for the tip, without checking I thought the other xml files were perhaps for individual tasks, not backups. The most recent can be identified inspecting the contents or simply comparing file size. It would be nice for gnotime to offer to restore one of these backups at launch if necessary. I had no idea gnotime was even making backups! Glad it was, many thanks for gnotime :)

  • Goedson Teixeira Paixao

    • status: open --> open-accepted
  • Goedson Teixeira Paixao

    I've just pushed some code to offer loading a backup file when the data file is missing in the branch try_loading_backup_data. There's still some changes needed before it can be released but it will at least handle the simple case when the backup is not corrupted.


Log in to post a comment.