Backup and Restore a Site Collection in SharePoint using PowerShell


Backup and Restore a Site Collection in SharePoint using PowerShell

In SharePoint 2010 you can take a backup of a site collection using the Backup-SPSite cmdlet:

Backup-SPSite
http://SPPath
C:\Backup\siteCollection.bak

Restoring a site collection in SharePoint 2010 is just as simple:

Restore-SPSite
http://SPPath
C:\Backup\siteCollection.bak

Advertisements

How to get the name of the application pools when they are using GUIDs?


How to get the name of the application pools when they are using GUIDs?

SharePoint has decided to use GUIDs for this Name. Within Central Administration the Application Pools are displayed using a SharePoint only property – Name, which is actually a Display Name (e.g. SharePoint Web Services Default).

The GUIDs used are, wait for it, yes – unique. These are not “well known GUIDs” like class ids. They will be different on every installation. It would appear the GUID love from SQL server has found its way into IIS thru the back door.

If you want to find out, which App Pool in IIS is which App Pool in SharePoint (crazy I know!) without fiddling around in the Internet Services Manager, you can do so with the following PowerShell:

First Run the following command to get list of Application pools with accounts assigned to it

Get-SPServiceApplicationPool

Then add

| select Id, Name

It will be Get-SPServiceApplicationPool | select Id, Name

2012 in review


The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

4,329 films were submitted to the 2012 Cannes Film Festival. This blog had 17,000 views in 2012. If each view were a film, this blog would power 4 Film Festivals

Click here to see the complete report.