About Me

My photo
I am a born brave developer. Developers are all born brave...WHY???? Come on... because when every one around are afraid of BUGS, we, the born brave ones, create them, play around with them, fix them and in the process create many more of them... ;)

Saturday, November 12, 2016

How to migrate Wiki pages/libraries from one SharePoint to another SharePoint version or across site collections.

How to migrate Wiki pages/libraries from one SharePoint to another SharePoint version or across site collections.

There are many articles about migrating lists and documents between sharepoint collection but very few article on migrating wiki pages between different site collection / sharepoint versions. Hope this helps fill the gap.

NOTE: You need to be one of the ADMIN of the site collection that needs to be migrated to and from, to be able to migrate the wiki pages.
NOTE: This document takes base as Old site is in SharePoint 2010 and the New Site collection is in SharePoint 2013.

1. Check that you have sharepoint designed installed in your system. If not yet… install it from Microsoft site based on whichever version you want.
Ex: https://www.microsoft.com/en-in/download/details.aspx?id=16573
2. Once the sharepoint designer is installed, open it from start/All Programs

3. In the opened sharepoint designer select Sites > 'Open Site' option

4. From the open window, select the locally mapped site collection folder that needs to be migrated. Click on Open button. (If the site collection is not mapped yet locally, then map the site to a local drive through 'Map Network Drive' using \\XYZ.com\… if your site is http://XYZ.com/… and then start from step 1 above)

5. The site collection will be loaded to the sharepoint designer. It might take few minutes based on the size of the site collection that is getting loaded.

6. Once the collection is loaded, select the required wiki library to be migrated, from the left pane.

7. From the top panel of menus, select 'Library Settings'.

8. The selected Wiki library will be opened in the tab. Click on the 'Save As Template' menu from top panel of 'List Settings'. It will open up template saving page for the site.

9. In the page, provide the required input and click on 'OK'. NOTE: Check the 'Include Content' check box so that the content of wiki pages are also copied.

10. The template will be created and the success dialog will be open in browser. Click on the 'List template Gallery' link to go to the location where the template is saved.

11. Template is saved in the same sharepoint:

12. Check the required wiki template from the list and click on the 'Download a Copy' link from top menu panel under 'Documents' tab. Save it to the your local system in .STP format.

13. Go to your new SharePoint site and create a new wiki library from the .STP/template saved in previous steps. Go to the 'Site Settings' and click on 'List Templates'.

14. In the new page, click in the 'Files' tab and then 'Upload Document' option on the horizontal top menu panel.

15. Select the .STP file from the previously downloaded location in your local system and click on 'OK'. Click on 'Save' in the next window. It will add the template to the new sharepoint site collection.

16. Go back to the home page of the new site collection and then click on option to add new WIKI library (Add lists, libraries, and other apps)

17. Search for the name of the template uploaded previously and then click on the app found.

18. Give a name to the WIKI library and click on 'Create':

19. Go back to the 'Home' of your site collection and the new wiki library link will be present in the 'Recent' section. Update the link of the 'DEMO WIKI' to any page of the wiki library inside it to load it default when clicked on the 'DEMO WIKI' link.

That's all…
Note: The links those are directly pointing to the previous/old sharepoint site will not get auto updated through this process of migration. Only the links created with '[[]]' quote will get auto updated. Even if your site context changes from previous to new site collection, still changing once in every page will change all links in the same page to right domain provided they were created previously with '[[]]' quote. Other links has to be manually corrected one by one. [Tough Task :)]