Wednesday, April 23, 2008

Import and Export lists or libraries

Using stsadm tools from, http://stsadm.blogspot.com/2007/09/importexportcopy-lists.html

I created a batch file to help you do mass imports and exports...

echo on
set cmmand="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe"

%cmmand% -o gl-exportlist -url "http://yoursharepointserver/shared documents/forms/allitems.aspx" -filename "c:\export\shared" -includeusersecurity -versions 4 -nofilecompression


%cmmand% -o gl-importlist -url "http://yoursharepointserver/" -filename "c:\export\shared" -includeusersecurity -updateversions 2 -nofilecompression

No comments: