Migrate content by using import/export
The import/export feature is based on the new Content Migration APIs. With import/export, you can migrate either subsites or entire site collections, and you can import a subsite into an existing site collection. Like the Smigrate.exe utility in the previous version, import/export requires that the site you import to already exists. Note that import/export does not include some site settings, such as Recycle Bin state and alerts.
To use import/export to migrate a site or site collection, use the following process:
|
1. |
Export the subsite or site collection by using the following command: c:\program files\common files\microsoft shared\web server extensions\12\bin\stsadm.exe
Stsadm.exe -o export -url <URL> -includeusersecurity |
|
2. |
In Central Administration, on the Manage Content Databases page, set to offline all databases except the one that currently contains the subsite or site collection. |
|
3. |
Create a blank site or site collection to contain the content you are importing. |
|
4. |
Import the subsite or site collection by using the following command:
Stsadm.exe -o import -url <URL> -includeusersecurity
The includeusersecurity parameter specifies that you want to import the security settings for the subsite or site collection. If you do not need the security settings, you can omit this parameter. |
OR
Migrate a site collection by using backup/restore
If you want to migrate an entire site collection, you can do so by using the backup and restore operations with the Stsadm.exe command-line tool. First, back up the site collection you want to move, then delete it from the current database and take the database offline. Then, restore the site collection to the new URL. Be sure that there is no site collection already at the new location, or the restore operation will fail.
To use backup/restore to migrate a site collection, use the following process:
|
1. |
Back up the site collection by using the following command:
Stsadm.exe -o backup -url <URL> -filename <filename.dat> |
|
2. |
In Central Administration, on the Manage Content Databases page, set to offline the database that currently contains the site collection. |
|
3. |
Restore the site collection by using the following command:
stsadm.exe -o restore -url <URL> -filename <filename.dat> |
|
4. |
In Central Administration, on the Manage Content Databases page, set to online the database that originally contained the site collection. |