Tuesday, May 4, 2010

STSADM commands for Backup and Restore Site Collection/Site/Sub Site

stsadm commands backup and restore are to backup/restore the site collection only and not for site/sub site.
stsadm -o backup -url  -filename 
stsadm -o restore -url  -filename  -overwrite
Inorder to to do the backup and restore operations on sites or sub sites stsadm commands import and export are used respectively.

Operation name: Export
Exports site and sub site data from your Microsoft Office SharePoint Server 2007 installation.

Syntax
stsadm -o export -url  -filename 
[-overwrite]
[-includeusersecurity]
[-haltonwarning]
[-haltonfatalerror]
[-nologfile]
[-versions] <1-4>
[-cabsize] 
[-nofilecompression]
[-quiet]
Operation Name: Import
Imports site and sub site data from your Microsoft Office SharePoint Server 2007 installation.

Syntax
stsadm -o import -url  -filename 
[-includeusersecurity]
[-haltonwarning]
[-haltonfatalerror]
[-nologfile]
[-updateversions] <1-3>
[-nofilecompression]
[-quiet]

No comments:

Post a Comment