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.
Below is PowerShell command to take backup of a subsite.
Export-SPWeb http://win-pfcp2dgt8di/sites/EnjoySharePoint/MyTestSubSite/ -Path “E:\Bijaya\MyTestSubSite.cmp” -IncludeVersions All
Below is the PowerShell command to import a subsite.
Import-SPWeb http://win-pfcp2dgt8di/sites/EnjoySharePoint/SPSubSite/ -Path “E:\Bijaya\MyTestSubSite.cmp” -UpdateVersions overwrite
Hope this will be helpful.
-: FREE PDF e-Book Download :-
51 JSOM Examples in SharePoint Online