Monday, March 12, 2012

Moving sub site from one farm to another


There are mainly  two ways  to move the sub site from one farm to another in SharePoint 2010.

They are :

1> Using Windows Powershell (Expor/Import t –spweb)
2>     Using Central Admin UI

1> Using Windows PowerShell to export a site, list, or document library in SharePoint

Export-SPWeb -Identity -Path [-ItemUrl ] [-IncludeUserSecurity] [-IncludeVersions] [-NoFileCompression] [-GradualDelete] [-Verbose]

Example: To export  and Import SubSite:

Export-SPWeb -Identity http:\\ServerName:port\Site -Path c:\\backup\Exportback.cmp
Import-SPWeb -Identity http:\\ServerName:port\Site -Path c:\\backup\Exportback.cmp

2> Using Central Administration to export a site, list, or document library in SharePoint

To export a site, list, or document library by using Central Administration

1.Verify that the user account that is performing this procedure is a member of the Farm Administrators group.

2.In Central Administration, on the Home page, click Backup and Restore.

3.On the Backup and Restore page, in the Granular Backup section, click Export a site or list.

4.On the Site or List Export page, in the Site Collection section, select the site collection from the Site Collection list, and then select the site from the Site list.

5.If you are exporting a site, skip this step, Select the list or document library from the List list.

6.In the File Location section, in the Filename box, type the UNC path of the shared folder and the file to which you want to export the list or document library. The file name must use the .cmp extension.

7.If the file already exists and you want to use this file, select the Overwrite existing files check box. Otherwise, specify a different file name.

8.If you want to export all the security and permissions settings with the list or library, in the Export Full Security section, select the Export full security check box.

9.If you want to specify which version of the list or library to export, select one of the following versions from the Export versions list:

All Versions
Last Major
Current Version
Last Major and Last Minor

10.When you have specified the settings that you want, click Start Export.

11.You can view the status of all backup jobs at the top of the Granular Backup Job Status page. You can view the status of the current backup job in the Content Export section of the page. The status page updates every 30 seconds automatically. You can manually update the status details by clicking Refresh. Backup and recovery are Timer service jobs. Therefore, it may take several seconds for the backup to start.

If you receive any errors, you can review them in the Failure Message column of the Backup and Restore Job Status page. You can also find more details in the .export.log file at the UNC path that you specified in step 6.

For SharePoint 2007 Application, we will use STSADM Export and Import Commands:

Export subsite
stsadm -o export -url http://toplevel/sub_site/subsite -filename c:\subsite.bak -includeusersecurity -versions 4

Import subsite
stsadm -o import -url http://toplevel/subsite/ -filename c:\subsite.bak

We will use Powershell Export  and Import commands to move the Subsite from one Farm to other Farm in SharePoint 2010.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.