Kaseya is buying Datto for $6.2 billion, or $35.5 per share. The deal is scheduled to close in the second half of 2022.