I have requirement in which I need to copy documents with there version history and created by ,created on , modified by , modified on. I am able to achieve this for copying from one site collection to other with the help of SPFileCollection.Add . How can I achieve this copying from one SharePoint farm to Other.


2 Answers 2


If you have similar SharePoint version with the two farms then use below approach.

SPExport/SPImport using this we can have similar version history new farm it will not disturb the Document version history.

Ref : http://sadomovalex.blogspot.in/2011/09/using-spexportspimport-for-copying.html

  • I have to from 2007 to 2013. I do have 2010 as well so from 2007 to 2010 and from 2010 to 2013 will also help. Jul 31, 2015 at 9:36
  • The above approach will not work, we should have to maintain similar version, otherwise we have to update each and every export file version like 12.0.0 to 14.0.0, but it's not a good practice to migration. Jul 31, 2015 at 9:42
  • Please let me know if you find any solution for it. Thanks Jul 31, 2015 at 9:47
  • If you want to maintain file version history then my suggestion would be try migration tools, if you doesn't care about version then use power-shell to export and import process we will maintain the last version in new system. Jul 31, 2015 at 9:55
  • I have to maintain version history with created by ,on and modified by ,on info. I am trying to achieve this pragmatically or any other way.Yes , I am keeping migration tool as a last option in handy. Can you suggest any migration tool ? Jul 31, 2015 at 10:01

I use Content Deployment Wizard. URL : https://spdeploymentwizard.codeplex.com/ . if you need to copy documents based on criterias, use CDW to copy them to a another site collection and then you copy them to the target location

P.S. If you use content types, CDW will also copy them, along with site columns

  • I have to copy from 2007 to 2013. Jul 31, 2015 at 9:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.