Boston-based tech company Carbonite Inc. has agreed to be acquired by Canadian software company OpenText in a $1.42 billion deal.