Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

    Advertisements
  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand
  • Advertisements

Posts Tagged ‘site’

Export & Import Site, Sub Sites using STSADM

Posted by Paul on July 2, 2013

In this example I will demonstrate how to export a site & sub sites using STSADM. We have already explored the PowerShell, Server Object Model methods of exporting & importing.

Scenario

Following are the site & sub site to be exported.

  1. Home
  2.   – HR
  3. URL: http://server

Step 1: Export

Open SharePoint 2010 Management Shell console window & run the following command.

stsadm –o export –url http://server –filename c:exportsite.cmp –includeusersecurity -versions

The –o denotes operation, .cmp represents content migration package.

Execute the command & you can see updates on the command line window.

image

Step 2: Create new site collection

You can create the destination site collection for importing in the next step.

image

Step 3: Import

Execute the following command to import the exported site from file.

stsadm –o import –url http://server/newsitecollection –filename c:export.cmp

Execute the command & you can see updates on the command line window.

image

Wait for the operation to be completed.  You can view the log file for more details on import operation.

Step 4: Verify

Now you can use the new URL to verify the site content.  Ensure the sub site is existing.  As a check list perform the following:

  1. Compare Home Page
  2. Ensure Site Features are Activated
  3. Ensure Lists, Libraries exists
  4. Ensure Sub Sites are created
  5. Ensure User Permissions

References

http://technet.microsoft.com/en-us/library/cc262465(v=office.12).aspx

Summary

In this example I have demonstrated how to export a site & sub sites using STSADM.

Advertisements

Posted in SharePoint | Tagged: , , , , , | Leave a Comment »

Error : Unable to Delete Site : SharePoint 2010

Posted by Paul on June 28, 2013

I was working on a site moving, but the operation failed due to site template mismatch.  I ended up with a half-created site.

I can access the site through URL, but unable to access the site settings to delete the site.

image

I tried PowerShell Remove-SPSite approach, but it says it cannot find the site with url.

Solution

I tried to examine the problem using Squadron.  Luckily i was able to see the site there.  Then the rest is easy – created on Delete command which recursively delete sites & sub sites under.  It worked like a charm with Squadron.

Steps

Here are the steps involved to delete a site collection/site/list/library using Squadron.

Install Squadron

You can download the latest from http://www.sharepointcto.com/Squadron/

Install the application & run it from Start Menu > Programs > Squadron

image

Open the Explorer plugin from the left pane.

image

Locate the site to be deleted

image

Click the Delete button

image

Confirm site deletion

image

Great! Your defective site should be deleted now.

Summary

Here we have explored a rare scenario of defective site & deletion of it using Squadron.  You can use the tool for site collection deletion, list/library deletion as well

Posted in SharePoint | Tagged: , , , , | Leave a Comment »

SharePoint 2010 – How to move/copy Site without PowerShell?

Posted by Paul on May 14, 2013

image

In the life time of a SharePoint deployment, we need to restructure sites like:

1. Copy one site to another parent

2. Move one site to another parent

Surely there are PowerShell, STSADM, and Server Object Model ways of doing it. But here I am going through the SharePoint Web Interface way of doing it.

The advantage is that we can do it without the help of SharePoint Administrator & Central Administration.

Content Database

Each site collection resides in a content database. In the case of web application, there could be multiple content databases.

Copying Site

Now let us see how to copy a site from one location to another. Open your SharePoint site & choose Site Actions > Site Settings.

clip_image002

Choose the Site Administration > Content and Structure item. In the appearing page, choose the sub site & context menu, then Copy item.

clip_image003

You will get the following dialog to choose the destination site.

We are copying site from one parent to another parent.

clip_image005

Choose your Destination Parent & click the Ok button. Your Copy operation should begin now..

clip_image007

Wait for a few minutes until the contents are copied. You can see the new site is created.

clip_image008

You can try accessing it using the URL.

clip_image009

The site appears as shown below.

clip_image011


Moving Site

For moving site, you can use the Move context menu item & then choose destination parent site.

clip_image012

clip_image014

If you cannot see the Site Content and Structure link, you need to activate the SharePoint Server Publishing Infrastructure feature from Site Settings > Site Collection features

clip_image016

References

http://bit.ly/102VB0C

Summary

In this article we have seen how to move/copy site without using PowerShell.

Posted in SharePoint | Tagged: , , , , , | 5 Comments »