copy_e2e function

Copy an object from one env to another.