We are using SP 2013 on-prem, and I am writing some functionality in c# to move document from one site to another, within the same site collection.
I have read a litte about the SPFile.MoveTo, but it's samples are a bit confusing: some say they can only copy, and some that they can only move files within the same site; https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile.moveto.aspx
I am looking for samples where I can move a document from one document library to a document library on another site, and keep the metadata and versions log.