In this article, we will discuss how to take a backup and restore it using the stsadmn command in SharePoint (WSS 3.0, MOSS 2007).
What is stsadm command?
It is a command line tool for administration of SharePoint sites.
Normally, it is present in the following path
C:\ProgramFiles\Common Files\Microsoft Shared\Web Server Extensions\12\Bin
When you are in the Admin groups, you will able to use this command and perform all the functions.
Site Backup & Site Restore:
Navigate to the following path in command prompt first
C:\>cd Program Files\Common Files\Microsoft Shared\web server extensions\12\bin
In SharePoint 2010, we use Power Shell instead of this command.
Before going for that let’s discuss about stsadm
Where it is located in the server?
1. C:\ Program Files\Common Files\Microsoft Shared\web server extensions\12\bin>stsadm.exe –o backup –url “Site URL” –filename “Location of DAT file with extension” -overwrite
2. C:\ Program Files\Common Files\Microsoft Shared\web server extensions\12\bin>stsadm.exe –o restore –url “Site URL” –filename “Location of DAT file with extension” –overwrite
Example:
Site URL – http://servername (or) sitename:portnumber
Location of DAT file with extension – D:\FolderName\FileBackup.dat
0 comments:
Post a Comment
Dear Readers,
I LOVE to hear from you! Your feedback is always appreciated. I will try to reply to your query as soon as possible.
1. Make sure to click the "Notify me" check box at the right side to be notified of follow up comments and replies.
2. Please Do Not Spam - Spam comments will be deleted immediately upon review.