shadow_copy2: introduce config struct and function shadow_copy2_connect()