Restoring a Site Collection

Restoring site collection is OPTIONAL.

The site collection contains predefined layouts with dummy body content (text and web parts) for easy customization. You can use it as a starting point in case you create a new site collection, or as a guide to follow on layouts, navigation, etc. The restored site collections (platinum editions) can be previewed at www.SharepointPackages.com (look for demos and screenshots).

In this Document:

  1. Restoring a Site Collection
  2. Fix for Restored Site Collection under ...sites/

A. Restoring a Site Collection

To restore a site collection backup data, use the restore command Restore-SPSite in SharePoint 2016 / 2019 Management Shell.
  1. Extract YourPackage.zip file.
  2. Navigate to Site_Collections folder and locate the *.bak data file (e.g. MT-Platinum.bak).
  3. Copy and paste the *.bak data file into Your SharePoint Server (e.g. Your SharePoint Local Disc:\backup\MT-Platinum.bak).
  4. From SharePoint 2016 / 2019 Central Administration

    EITHER:
    Add a new top-level site Collection to your existing Web Application to be overwritten by the restored Site Collection.
    *Example (URL - http://YourServer:2016/sites/TopLevelSiteCollection)

    OR:
    Create a new Web Application.
    *Example (URL - http://YourServer:2016)

  5. Create New Web Application
  6. Open SharePoint 2016 / 2019 Management Shell:

    On the Start screen -> click SharePoint 2016 / 2019 Management Shell, or navigate to Apps by name -> Microsoft SharePoint 2016 / 2019 Products -> click SharePoint 2016 / 2019 Management Shell.
  7. SharePoint 2019 Management Shell

  8. Type EITHER:

    Restore-SPSite -Identity http://YourServer:2016 -Path YourSharePoint Server:\Backup\MT-Platinum.bak
    (*http://YourServer:2016 is the location of the Web Application you just created.)

    *Example (URL - http://YourServer:2016)
    SharePoint 2019 Management Shell
    OR:

    Restore-SPSite -Identity http://YourServer:2016 -Path YourSharePointServer:\Backup\MT-Platinum.bak -Force
    (*http://YourServer:2016 is your existing site collection. If you want to overwrite your existing site collection, use the -Force parameter)

    *Example (URL - http://YourServer:2016)
    SharePoint 2019 Management Shell
  9. Press Enter -> Y.
  10. Open http://YourServer:2016 in your browser, press F5 (refresh) if needed. Your site collection should be restored.
  11. Install a custom look for your restored site: Installation of Custom Look on on SharePoint 2016 / 2019

* For more details about command Restore-SPSite, type Restore-SPSite -? at the PowerShell command prompt.

    B. Fix for Restored Site Collection under ...sites/

    If you restored a site collection under sites/ in the URL (e.g. URL - http://YourServer:2016/sites/TopLevelSiteCollection), you may notice the following error message for some pages in your browser:

    This page is not using a valid page layout.
  1. To fix the problem go to: http://YourServer:2016/sites/TopLevelSiteCollection/_layouts/15/sitemanager.aspx
  2. Click Pages (left pane) -> Select a Page that is not using a valid page layout (right pane) -> Edit Page Settings -> Change Page Layouts for pages as follows:
  3. Page:   "Welcome 3-Column" Change Page Layout to:   "(Welcome Page) MT Welcome 3-Column"
    Page:   "Welcome 2-Column A" Change Page Layout to:   "(Welcome Page) MT Welcome 2-Column Side Bar L"
    Page:   "Welcome 2-Column B" Change Page Layout to:   "(Welcome Page) MT Welcome 2-Column Side Bar R"
    Page:   "Blank Web Part Page" Change Page Layout to:   "(Welcome Page) Blank Web Part page"
    Page:   "Welcome Summary Links" Change Page Layout to:   "(Welcome Page) Summary links"
    Page:   "Article - Image Left" Change Page Layout to:   "(Article Page) Image on left"
    Page:   "Article - Image Right" Change Page Layout to:   "(Article Page) Image on right"
    Page:   "Article - Body Only" Change Page Layout to:   "(Article Page) Body only"
    Page:   "Article - Summary Links" Change Page Layout to:   "(Article Page) Summary links"
    Page:   "Predefined Table Grids" Change Page Layout to:   "(Article Page) Image on right"
    Page:   "Styles - Body Area" Change Page Layout to:   "(Article Page) Body only"
  4. Publish all pages with modified page settings.