SharePoint Backup and Restore Tutorial
Saturday, September 15, 2007, 18:33
As the saying goes, its sometimes better to do something yourself than have someone else do it for you. The same is true for the Central Admin site as there are always some issues with some functions and I just prefer doing most administrative tasks via stsadm. I found stsadm to be the easiest and simplest way of doing majority of administrative functions. One of tasks is backing up and restoring SharePoint site collections.
Browse to SharePoint Directory
- Launch the command prompt
- Type cd “%programfiles%\Common Files\Microsoft Shared\web server extensions\12\BIN”
Backup Site Collection
- Type stsadm -o backup -url <url> -filename <filename>
- <url> is the url of the site collection that you want to backup
- <filename> is the filename of where to store the site collection
What’s Not Included During Backup?
- My Sites
- Sub site collections.
Keep this in mind when doing a backup.
Restore Site Collection
- Type stsadm -o restore -url <url> -filename <filename> -overwrite
- <url> is the url of the site collection that you want to restore
- <filename> is the filename of where to store the site collection
- overwrite be cautious with this command as you don’t want to overwrite the wrong site collection
Possible Security Error during Restore
Access is denied. (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED)).
Now you might possibly have an issue during the site collection restore process. This can happen when the the account that you used to do the backup was not the site administrator and during your restore process, it will fail for you. There is a way to fix that in case you are at another location during the restore process and can not run the backup with the correct user account. What you will notice after the restore process not working that the Event Viewer will contain information on what user account does not have access to perform this action.
- Launch Event View and view the System Events
- Look for the system will complain about a DECOM event .. starting with: “The application specific permission settings do not grant local activation for …. with CLSID XXXX ….. to the user referencing a ‘domain name service account’”.

- Make a note of the CLSID as we will need that later on.
- Goto Administrative Tools -> Component Services
- Click on Component Services and then Computers and then My Computer (depending on your computer name)
- Click on DCOM Config and change the view to show the items in Details view
- Look for the item that matches your CLSID
- Right click on the item that matches the CLSID and click on Properties
- Select the Security tab
- Click edit next to Customize under the Launch and Permissions section
- You will notice that the user that you were trying to run the command is not part of the security listing
- Add the user and reboot the system
That should fix up any issues with restoring a site. Have you had any problems with backing up and restoring SharePoint site collections?
If you would like to take this a bit further, why not read Joel’s post, SharePoint Backup Restore, High Availability, and Disaster Recovery.
External Resources
Related Posts:
Migrating MOSS 2007 Applications to Another DomainHow to migrate a SharePoint 2007 application across servers or domains
Note: If either the backup or restore fails, you will need to delete the job
Checklist To Migrate Sharepoint 2007 Application Across Multiple Servers Or DomainsRobert Freeman has nice a post tallying up what to do when migrating Sharepoint 2007 applications across servers or domains.
Two major things need to be
Whitepaper - SharePoint 2007 Backup StrategiesQuick Post: AvePoint has released a whitepaper that goes over the native backup tools in SharePoint v3 and details their shortcomings.
Unfortunately, very few organizations have
SharePoint Weekly Review (03.09.07)There's been quite a few good articles out in the SharePoint community. Last week we had our first edition of SharePoint Weekly Review.
Cannot Uninstall Office 2007 Beta From XP Or Vista?I did a bit of digging around as the post by Guest Blogger Alpesh How To Manually Uninstall Office 2007 Beta has become one of
You can follow any responses to this entry through the
RSS 2.0 feed.
Both comments and pings are currently closed.
STSADM Restore issue - LTI Blog said on Thursday, November 8, 2007, 11:54
[...] ? I finally found this article - and have my fingers crossed that it’ll solve my problem: ? http://www.sharepointbuzz.com/index.php/2007/09/15/sharepoint-backup-and-restore-tutorial? ? For some reason, the backup would not restore into my Virtual PC version - I kept getting [...]