Pages

Sunday, September 27, 2015

How to change site home page in SharePoint 2013

Method 1:-
  • Open site that you need to change the home page
  • Go to Site Actions and click Site Settings.
  • Under the Look and Feel section click Welcome Page
  • Click Browse to select the item from the site contents or you can type the URL of the content which you need to show as home page.
Method 2:-
  •  Go to the site page which you need to show as home page.
  •  Go the Page tab and click Make Homepage under the Page Actions sections. Site homepage will be changed to this page.
Method 3:-
  • Go to Site Pages in Site Contents.
  • Go to the Files tab and click New Document and select Wiki Page to create a new site page.
  • Under the page edit mode go to the Insert tab then click Web Part.
  • Now select the content under the App categories which you need to show in your homepage and click Save.
  • Go the Page tab and click Make Homepage under the Page Actions sections. Site homepage will be changed to this page.

Saturday, September 19, 2015

Backup and Restore a SharePoint Site Collection using PowerShell

In this article you are going to see that how to backup and restore SharePoint site. You need to use SharePoint management shell instead of regular Windows PowerShell.
You can use the Granular Backup option in SharePoint Central Administration to back up a site collection however you can only restore site collection using SharePoint Management Shell.

Simply follow this steps for:

Backup a Site Collection
  1. Open SharePoint 2010 Management Shell as Administrator (Run as administrator).
  2. Type the following command.
Backup-SPSite -Identity [SITECOLLECTIONURL] -Path [BACKUPFILEPATH] [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose]

Replace [SITECOLLECTIONURL] with the URL of your site collection.
Replace [BACKUPFILEPATH] with the Path where your backup file should be saved.

Ex: Backup-SPSite -Identity http://servername/sites/mysite -Path D:\MySiteCollection.bak [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose]

Your backup should be created on the selected path.

Restore a Site Collection
  1. Open SharePoint 2010 Management Shell as Administrator (Run as administrator).
  2. Type the following command.
Restore-SPSite -Identity [SITECOLLECTIONURL] -Path D:\MySiteCollectionBackup.bak –Force

Replace [SITECOLLECTIONURL] with the URL of your site collection which the backup should be restored.
Replace [BACKUPFILEPATH]  with the Path where your backup file is located.

Ex: Restore-SPSite -Identity http://servername/sites/newsite -Path D:\MySiteCollection.bak -Force

Your backup file should be restored on the provided URL.