Tuesday, January 24, 2012

Stsadm Commands

Export/Import

stsadm.exe -o export -url http://localhost/ -filename C:\Export.cab -includeusersecurity -versions 4 -overwrite
stsadm.exe -o import -url http://localhost/ -filename C:\Export.cab -includeusersecurity

Can export/import sub-sites with this method (i.e. http://portal/Communities/Employee)

http://technet.microsoft.com/en-us/library/cc288191(office.12).aspx

Backup/Restore

stsadm -o backup -url http://localhost/ -filename c:\helpdesk.bak
stsadm -o restore -url http://localhost/ -filename c:\helpdesk.bak -overwrite

http://technet.microsoft.com/en-us/library/cc263431(office.12).aspx