This topic is locked

1/2 Bug - Restore from backup

5/28/2011 1:16:03 PM
PHPRunner General questions
M
mickna author

Hi Team,
yesterday PR crashed (rare issue).

I opened PR again, load my project and PR noticed, that there is a backup and asked me, if I want to restore.
Sure! I was lazy with save and I have lost some changes after my last save.

PR restores, loads and then: File corrupted! Bad, but not so bad, as I just lost a few hours and can load the old project like I did before restoring.

Again loading the Project and now this file is also corrupt! Jesus!
So my question is:

I believe, that PR is restoring this way:

  1. notice the zip-file (backup file)
  2. If user says restore, PR unzip the file, OVERRIDE the last save and THEN load the backup file.
    So in my case the corrupted Backup-File overwrote my working (older) project file.
    Why not this pipeline:
  3. notice the zip-file (backup file)
  4. unzip the file at the location of the zip file projectName/tmp/backup/
  5. load the backup project
  6. if all went fine with loading, THEN delete the old project and move the WORKING unziped, backup file to the right location.
    Lucky as I am, I have noticed, that only the closing tag was corrupted (<FTPFiles />) <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=17111&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' />

    But I think this would be a better way of restoring...
    Thank you,

    Michael

J
Jane 5/30/2011

Michael,
thank you. We'll check this issue.