Export / import sub-site

Date: Monday, May 04, 2009
Problem:  Public Health site became out of synch on ships due to creation of new document library
Solution: Use stsadm to export sub-site, copy to ships, and import sub-site

STEP 1: Export sub-site Reference:\\halefleet01.flagship.hal.com\d$\Exports\PH\PHExport.bat

c:
cd "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN"
stsadm.exe -o export -url "http://efleet2/PH" -filename "D:\Exports\folder\PH" -includeusersecurity -versions 4 -cabsize 15

STEP 2: Copy export files and import batch to ships, refer to STEP 4

STEP 3:
Sign onto ship, delete site

Site Actions, Site Settings, Modify All Site Settings
"Site Administration", "Delete this site"

STEP 4: Import sub-site Reference:\\halefleet01.flagship.hal.com\d$\Exports\PH\PHImport.bat

c:
cd "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN"
stsadm.exe -o import -url "http://staging/PH" -filename "D:\Exports\PH\PH.cmp" -includeusersecurity -updateversions 2

STEP 5: Replication Check, if necessary

Run replication, it should work with new structure