Transferring and persisting diagnostic data