Effective data protection in a hybrid environment