Switching between two devices using appium to transfer contents

I have a new project coming up for automation using appium, which
involves transfering content like images, contacts from a older device
to a new iphone device using an app. can you please guide me how can i
switch between two devices.
Your suggestion is most appreciated, thank you in advance