In SharePoint 2010 you can import and export sites, lists, document libraries and items using Export-SPWeb and Import-SPWeb.
Here’s how you export a site in SharePoint 2010:
Export-SPWeb http://SP/TeamSite –Path C:\Backup\website.bak
If you only want to export a list in a site you can use –ItemUrl parameter as shown below:
Export-SPWeb http://SP/TeamSite -ItemUrl “Lists/Announcements” –Path C:\Backup\website.bak
You can use the Import-SPWeb cmdlet to import the exported files to SharePoint 2010.
Import-SPWeb http://SP/TeamSite –Path C:\Backup\website.bak
You can also check the other multiple options available with these commands(like -force etc..) at the powershell by pressing tab key.
Thursday, 18 August 2011
Wednesday, 17 August 2011
Subscribe to:
Posts (Atom)
Popular Posts
-
To see a site collection's hidden user information list append /_catalogs/users/simple.aspx onto the end of the site collection url. ...
-
Please Check the below complete code to bind SharePoint list items to a DataTable/ Gridview. In this post, we are using the list named ...
-
To bind the drop down list data with a field from the SharePoint list you can use the below code methods:- Method 1 if (!Page.IsP...
-
By Default SharePoint shows 3 events for any date in the calendar view, if we want to show all the events then we have to use any of the fol...
-
This Javascript function checks if the parameter supplied exists in the query string. If the parameter supplied is found in the query strin...
-
You can use CAML to do the following: Modify parameters to transport complex data Define the body of SOAP messages to transport data usin...
-
You can use below powershell command to change sharepoint user display name. Set-SPuser -identity "User name" -DisplayName ...
-
SharePoint solutions are either deployed globally or targeted to a particular web application. The decision of which is made automatically...
-
The sharepoint site is very slow when we access it first time. After that the response time is good. The reason is compilation and cachin...
-
The following Event Handler code will prevent users from creating duplicate value in "Title" field. ItemAdding Event Handler ...