I have 2 farms inside the same domain and both farms are sharepoint on-premises 2013. Now I want to move documents inside documents libraries from the first farm to the second farm.
Inside the destination farm, I already have a site which have other list and libraries, and I added the related document libraries which mimic the docs libraries inside the source farm.
But I am not sure how I can move the docs from the docs libraries inside the source farm to the destination docs libraries while preserving their properties (such as created, createdby ,modified, modifiedby, title & name). Now all the online documentations I have read show how to move the docs inside the same site collection, using the Content and Structure approach.. but none of them show how to do this cross-farms? I am not sure if this approach which came to my mind should work:-
Using Powershell I can access the source docs using the list API, and then move the documents in a way or another into the destination farm ??
Could any one provide some sample code or adivce on the approach that I can follow?