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