Import or Export using STSADM

Import / Export
stsadm.exe -o export
    -url
    -filename
         [-overwrite]
    [-includeusersecurity]
    [-haltonwarning]
    [-haltonfatalerror]
    [-nologfile]
    [-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]
    [-cabsize ]
    [-quiet]
Note: 
You must use the -includeusersecurity parameter in order to preserve time stamps, security information, and user data.
 
Example
The following example illustrates how to import the contents of a Web site using the command-line tool STSADM.exe.
C#Copy Code
stsadm.exe -o import
    -url
    -filename
    [-includeusersecurity]
    [-haltonwarning]
    [-haltonfatalerror]
    [-nologfile]
    [-updateversions
        1 – Add new versions to the current file (default)
        2 – Overwrite the file and all its versions (delete then insert)
        3 – Ignore the file
        4 – Terminate with conflicts]
    [-quiet]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s