none
How to automatically sync Document Library Folder Items with version from one web application to another archive/ other SharePoint server Environment in Document Library include version History using Powershell command in SharePoint 2010 at time interv RRS feed

  • Question

  • Hi,

              How to automatically sync  Document Library Folder Items with version from one web application  to another archive/ other SharePoint server Environment in Document Library include version History using Powershell command  in SharePoint 2010 at time interval.

    Note :- Mandatory for all version history source to destination. 


    Thanks Mukesh

    Friday, October 5, 2018 5:13 PM

All replies

  • Hi

    Here is a link for your reference.

    https://sharepoint.stackexchange.com/questions/101644/copy-files-between-sites-with-version-history-powershell-sp2010

    You can put PowerShell into a schedule job and run every day.

    If you can write server code, you can implement a event receiver and sync every change immediately.


    Justin Liu Office Servers and Services MVP, MCSE
    Senior Software Engineer
    Please Vote and Mark as Answer if it helps you.

    Monday, October 8, 2018 1:17 AM
  • Hi Mukesh,

    Do you mean you want to copy the document folder items to another SharePoint server?

    Per my knowledge, it’s not possible to move/copy files with version history between SharePoint farm using PowerShell script.

    To work around, you can check if the third party tool can helps you.

    Best regards,

    Grace Wang


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Monday, October 8, 2018 8:57 AM
    Moderator
  • Hi Justin,

    I need move the data from Site  AAA to Site collection BBB in same farm in sharepoint 2010, include version history on daily basis.

    1. PowerShell into a schedule job and run every day. Please provide the steps and code also.

    Thanks & Regards,

    Mukesh.


    Thanks Mukesh

    Friday, October 12, 2018 5:37 AM
  • Hi Grace,

    NO.. I need to move to data from one site to another site in same server and same Web application on daily basis.

    PowerShell into a schedule job and run every day. Please provide the steps and code also.

    Thanks & Regards,

    Mukesh,


    Thanks Mukesh

    Friday, October 12, 2018 5:39 AM
  • Hi

    As for code, you can refer that link and learn how to using CSOM to adapt to your requirement.

    When you finish this, you can build that as a exe file.

    Then config run every day in your task schedule manager.

    Justin Liu Office Servers and Services MVP, MCSE
    Senior Software Engineer
    Please Vote and Mark as Answer if it helps you.


    Friday, October 12, 2018 6:13 AM
  • Hi Mukesh,

    You can use script in the article below to move files with version history between sites:

    https://julieturner.net/2011/06/maintain-file-version-history-when-movingcopying-files-between-sharepoint-sites/

    Save it as .ps1 file and use Task Scheduler, create a task to run this .ps1 file daily.

    Best regards,

    Grace Wang


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Tuesday, October 16, 2018 2:29 AM
    Moderator