Share via


Export: Stsadm operation (Windows SharePoint Services)

Applies To: Windows SharePoint Services 3.0

 

Topic Last Modified: 2010-04-26

Operation name: Export

Description

Exports site and subsite data from your Windows SharePoint Services 3.0 installation.

Syntax

stsadm -o export

**   -url <URL name>**

**   -filename <export file name>**

**\[-overwrite\]**

**\[-includeusersecurity\]**

**\[-haltonwarning\]**

**\[-haltonfatalerror\]**

**\[-nologfile\]**

**\[-versions\] \<1-4\>**

**\[-cabsize\] \<integer value\>**

**\[-nofilecompression\]**

**\[-quiet\]**

Parameters

Parameter Value Required? Description

url

A valid URL, such as "http://server_name"

Yes

Specifies the URL of the site collection or site to be exported.

In SharePoint 2010 Products, specifies the URL of the site collection, site, or list to be exported. For example, http://server_name/Lists/My List

filename

If using the –nofilecompression parameter, a directory must be specified; otherwise, any file format is valid.

Yes

Name of the export file

overwrite

<none>

No

Overwrites the current export file

includeusersecurity

<none>

No

Preserves the user security settings

haltonwarning

<none>

No

When a warning occurs, the export process is stopped.

haltonfatalerror

<none>

No

When an error occurs, the export process is stopped.

nologfile

<none>

No

Suppresses the generation of an export log file. If this parameter is absent, the export operation will generate an export log file in the same location as the export package. The log file uses Unified Logging Service (ULS).

It is recommended to use this parameter. However, for performance reasons, you might not want to generate a log file.

versions

Any one of the following versions:

  1. Last major version for files and list items(default)

  2. The current version, either the last major or the last minor

  3. Last major and last minor version for files and list items

  4. All versions for files and list items

No

Indicates which type of file and list item version history should be included in the export. If the -versions parameter is absent, the export operation will default to using a value of 1.

cabsize

A valid integer between 1 and 1024

No

An integer from 1 to 1024 megabytes that describes how large each cabinet file (*.cab) should be. Once the specified size is reached, another cabinet file is generated. This can be beneficial if you are copying files over a network, and you want the file size to be small.

nofilecompression

<none>

No

Either enables or disables file compression in the export package. The export package is stored in the folder specified by the -filename parameter. It is recommended to use this parameter for performance reasons. If compression is enabled, it can increase the export process by approximately 30%.

quiet

<none>

No

Suppresses the output of export progress information to the display window. The final export status (“Operation completed successfully.”) will still be displayed. If the -quiet parameter is absent, the export operation will display progress information to the display window as it exports the site. For performance reasons, it is recommended to use this parameter because the buffer of the display window is small compared to writing a file.