Wednesday, March 4, 2009

Import: Stsadm operation (Windows SharePoint Services)

Import: Stsadm operation (Windows SharePoint Services)


Operation name: Import
Imports site and subsite data from your Windows SharePoint Services 3.0 installation.

Syntax
stsadm -o import

-url

-filename

[-includeusersecurity]

[-haltonwarning]

[-haltonfatalerror]

[-nologfile]

[-updateversions] <1-3>

[-nofilecompression]

[-quiet]

Parameters
Parameter Value Required? Description
url
A valid URL, such as "http://server_name"
Yes
URL of the Web application to be imported

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

includeusersecurity

No
Preserves the user security settings

haltonwarning

No
When a warning occurs, the import process is stopped.

haltonfatalerror

No
When an error occurs, the import process is stopped.

nologfile

No
Suppresses the generation of an import log file. If this parameter is absent, the import operation will generate an import log file in the same location as the import 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.

updateversions
Any one of the following versions:

Add new versions to the current file (default)

Overwrite the file and all of its versions (delete then insert)

Ignore the file if it exists on the destination
No
Indicates how to resolve situations where a file to be imported to a site already exists in that site. If the -updateversions parameter is absent, the import operation will default to using a value of 1.

nofilecompression

No
Either enables or disables file compression in the import package. The import 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 import process by approximately 30%.

quiet

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home