Skip to main content

Backup and Restore SharePoint Sites with Stsadm.

##
# Backup a site collection
#   stsadm –o backup –url <URL of the site collection> -filename <Name of the backup file>
##
stsadm -o backup -url "http://intranet.net/sites/its/" -filename "c:its.dat"

##
# Restore a site collection
#   > stsadm –o restore –url <URL of the site collection> -filename <Name of the backup file>
##
stsadm -o restore -url "http://intranet.net/sites/its/" -filename "c:its.dat"

# NOTE: The backup and restore operations only work for top-level Web sites.