Share via


Copying sites in SharePoint 2007

If you wanted to copy a site from one place to another within the same site collection, you can use the copy feature of the sharepoint present in Content and Structure.

In case if you have to copy the site from one webapplication to another, or to a different server, you can implement that in 2 different ways.

1) Using the STSADM Export and import commands (Probably, the simplest)

use the stsadm export command to export the existing site to a file.

Syntax: stsadm –o export –url <<Source Url of the Site>> –filename <<Name of the file to export to>>

To import it back to a different location, use the stsadm export command to export the existing site to a file.

Syntax: stsadm –o import –url <<Target Url of the Site>> –filename <<Name of the file to import from>>

The other options available for these commands can be viewed using stsadm –help <<operation name>> e.g., stsadm –help export

 

2) Use the SharePoint designer’s Export feature.

Connect to the SharePoint site which you wanted to connect.

Go to File –> Export –> Personal Web Package

Now you can select the entire site /  the required content and save the file by pressing Ok.

image

Now, connect to the target site. To import the data, you can go to File –> Import –> Personal Web Package and select the .fwp file and now the process is straightforward.