Backup SharePoint site collections and sites with STSADM

Published:
Updated:
The STSADM command is extremely useful in the management of site collections and sub-sites.  Here are a few commands that I have used in my daily SharePoint backups:

*  Back-up an entire Site Collection to a single file:
 
stsadm -o backup -url http://sitecollection -filename c:\site_collection_backup

Open in new window


*  Back-up one site to a single file:  
 
stsadm -o export -url http://site -filename c:\site_backup

Open in new window


*  Restore a site collection from that file:  
 
stsadm -o restore -url http://sitecollection -filename c:\site_collection_backup

Open in new window


*  Restore a site from that file:  
stsadm -o import -url http://site -filename c:\site_backup

Open in new window

1
3,629 Views

Comments (5)

Worth Full

Commented:
Great Thnx.
nice!
@adkinsmatthew

Does this command back up all Data Base Objects associated with the SP instance?
Brilliant article!!!!!!!!1

Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.

Get access with a 7-day free trial.
You Belong in the World's Smartest IT Community