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.
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.
You May Also like the Following SharePoint Online Tutorials: