Before you can import your web, you need to create the site. To create a site using the SharePoint 2010 Management Shell, perform the following steps:
Execute the following command from within the PowerShell Shell:
New-SPWeb –URL http://server/sites/IT/Blog/ -Verbose
Verbose parameter has been used to see how this cmdlet executes and creates a new site, as shown in Figure 10.20. After the site has been created, it can be overwritten with the backup using the following steps:
Figure 10.20. Creating a new site using New-SPWeb commandlet.
To import a site using the SharePoint 2010 Management Shell, execute the following command, as shown in Figure 10.21:
Figure 10.21. Importing a site using PowerShell.
With SharePoint 2010, backup and restore of site collections, sites, or lists can now be easily done with the Central Administration tool or SharePoint 2010 Management Shell. This functionality has been removed from SharePoint Designer 2010.