STSADM tool is used for command-line administration of Office SharePoint Server 2007. Stsadm is usually located at “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN” and the user must have Administrative rights to use this tool. This tool provides access to the complete set of operations on the SharePoint Server 2007.
STSADM proves to be a boon when used with SharePoint migration tasks. One can easily carry out the IMPORT / EXPORT and BACKUP / RESTORE operations. The commands for these operations are listed below: EXPORT
stsadm.exe -o export -url [site collection url] -includeusersecurity -nofilecompression -filename D:\spbackup