A virus that infects bacteria.