Export Import Sub Site using PowerShell in SharePoint 2013


In this post, we will discuss how we can export and import a subsite in SharePoint 2013 using PowerShell. By using Backup and Restore you can backup and restore site collection not a subsite. We can use Export and Import command to export and import a particular subsite or a list or document library.


Also, read:
All Apps Templates are not visible while Adding an App in SharePoint 2013

View ULS Logs using SharePoint LogViewer in SharePoint 2013

user profile synchronization service stuck on starting SharePoint 2013

Below is PowerShell command to take backup of a subsite.

Add-PSSnapin “Microsoft.SharePoint.PowerShell”

Export-SPWeb http://win-pfcp2dgt8di/sites/EnjoySharePoint/MyTestSubSite/ -Path “E:\Bijaya\MyTestSubSite.cmp” -IncludeVersions All

Below is the PowerShell command to import a subsite.

Add-PSSnapin “Microsoft.SharePoint.PowerShell”


Import-SPWeb http://win-pfcp2dgt8di/sites/EnjoySharePoint/SPSubSite/ -Path “E:\Bijaya\MyTestSubSite.cmp” -UpdateVersions overwrite

Hope this will be helpful.


You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →