Skip to main content

Backup / Restore using STSADM command.

Command to take Backup of a sharepoint site:
Go To :
1. \program files\common files\microsoft shared\web server extensions\12\bin.

2. Run stsadm -o backup -url -filename .
For ex: stsadm -o backup -url http://dev:8585/ -filename file://dev/filename.dat.

Command to restore backup of a sharepoint site:
1.\program files\common files\microsoft shared\web server extensions\12\bin.

2. Run stsadm -o restore-url -filename .For ex: stsadm -o restore -url http://dev:8585/ -filename file://dev/filename.dat.

3. If you want to overwrite the existing site, use -overwrite command.For ex : stsadm -o restore -url http://dev:8585/ -filename file://dev/filename.dat -overwrite.

Comments

Popular posts from this blog

SharePoint 2010 Branding: Change site actions and welcome menu arrows

Here's how you can do it. Hide the image and give our custom image element a background image. Look Like: .ms-viewselector-arrow {     background: transparent url('/PublishingImages/images/Arrow.png') no-repeat scroll 0 0;     height: 4px; /* height of the image */     width: 5px; /* width of the image */ } .ms-viewselector-arrow img {     display: none; }

Securing Publishing Sites with Lockdown Mode

Using lockdown mode on published sites if greater security on these sites is a requirement. Additionally, if you applied the Publishing Portal site template, determine if lockdown mode is the desired configuration for these sites. If not, use the Stsadm.exe command-line tool to turn off lockdown mode. Turn off lockdown mode for a site collection stsadm -o deactivatefeature -url -filename ViewFormPagesLockDown\feature.xml Turn on lockdown mode for a site collection stsadm -o activatefeature -url -filename ViewFormPagesLockDown\feature.xml