Copy documents from source to destination sharepoint libraries while preserving the original documents properties such as Created,CreatedBy

0

0

I am working on 2 sharepoint projects, which are 2 separate sharepoint farms that are inside the same domain (Old farm & New farm). Now inside the old farm we have 20 sharepoint documents libraries, and we want to COPY all the documents from the old farm to the new farm. but the point i am asking about is that i want to COPY the documents while preserving their original properties including :-

  • Created
  • Modified
  • Created BY
  • Modified BY
  • Title & Name

now i am not worried about moving the libraries themselves and their settings, but rather i am worried about COPYing the documents. so currently i did the following:-

  1. on the new farm i added 20 new documents libraries, which mimic the old documents libraries. where i define them to have the same library name and settings.
  2. now i try to manually COPY the documents from the old libraries and PASTE them inside the new library, but i have noted that the created date will be equal to current date (date of the PASTE) instead of the original created date.

so can anyone advice what are the appraochies (using power-shell or other means) that i can follow to COPY the documents between the 2 sharepoint farms? so is there a power-shell script that i can use to move the documents?

I have the following 4 points to be mentioned:-

  1. some libraries have the documents organized in folders.
  2. the two farms have different permissions. so the site admin on the source farm can not access the destination farm and Vice versa. now if this is a major issue, i can grant the admin the related permission on the second farm during the move operation.
  3. both farms are sharepoint 2013 on-premises.but they have different build numbers.
  4. now in sharepoint each document library can be accessed from a web url such as http://servername/sites/HR/HR Documents/ and this can be opened as a folder inside the machine also.

john Gu

Posted 2017-08-22T13:35:12.300

Reputation: 69

Like Attribute Changer?

– Thomas Weller – 2017-08-25T16:31:46.640

If you have a sandbox or test site, this would be a perfect opportunity to try some things and test. There used to be stsadmin command line that would allow such things but I don't recall what version of SharePoint that client was running on their server and I don't support their system any longer. I used to push things over to their sandbox, and have them test and confirm that it's good there, and once approved do the same over to production with a little coordinate. Will dig up some stuff later for you if I can find anything and no one else gives any suggestions, etc. – Pimp Juice IT – 2017-08-25T16:34:55.087

I also posted a link to this question on https://sharepoint.stackexchange.com/ in the chat area in case someone there can help you, etc.

– Pimp Juice IT – 2017-08-25T16:36:47.157

Does this SharePoint article help : Copy or move library files by using Open with Explorer?

– harrymc – 2017-08-25T17:05:15.993

2John - why no comment? – harrymc – 2017-08-29T20:43:18.700

@harrymc when you use the file explorer to move or copy files, it changes the created and modified attributes. – ShooShoSha – 2017-09-08T20:30:26.730

Attributes only change when files are copied, since they are then new files. Move shouldn't do that. For copy, you could maybe use a utility such as Robocopy that can preserve attributes, Note: Why did you abandon your post with a bounty - some people spent time on the problem for nothing. – harrymc – 2017-09-08T20:52:59.880

No answers