add check to see if backup file is valid before attempting restoration
Merge pull request #393 from timrae/backup-validity-check

add check to see if backup file is valid before attempting restoration