.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Backup/Restore Sharepoint 2010 using Powershell.

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#

Hello all!

I can't say, that i'm new in Sharepoint and particularly in Sharepoint 2010, but i've never used for Backup powershell, so i've got a question.

When i perform Backup using powershell i get as a result folder with a lot of .bak files within. To get know what .bak file to use for Restore of some DB i need to open that XML file, to find by the name needed DB and to restore. The problem is, that when i find needed DB in this XML file i see three .bak files for this DB like these:

1.<SPParameter Key="Features.xml">

- <![CDATA[00000047.bak  ]]>

View Complete Post

More Related Resource Links

Cannot Restore Backup from Sharepoint Server 2007 to Sharepoint Server 2010 Trial Version

After installing the trial version of Sharepointn 2010 I wanted to restore my Sharepoint 2007 sites to it but received the following error:  "The site collection could not be restored. If this problem persists, please make sure the content databases are available and have sufficient free space." I went on to create a new content database in sharepoint 2010 but it still did not work. The old database i.e the one used by the sharepoint 2007 server is SQL 2005. During the installation of the sharepoint 2010 version I selected SQl Server Express for the database. Is there any specifics for migrating from MOSS 2007 to sharepoint 2010? Thanks for helping

Backup and Restore Sharepoint 2010 to new server

I have a Sharepoint 2010 server running SQL Express. (SERVER A)     I have an identically configured Sharepoint 2010 server running SQL Express (SERVER B).   I want to migrate the data from SERVER A to SERVER B.   Does anyone out there have a step by step guide for this?

SharePoint 2010 Unable to restore differential backup


Sharepoint 2010 farm and SQL server are two separate 2008 R2 servers.  Ran full backup in the administration site and ran a differential of part of the site.  Cannot restore the differential.  It is looking for the full.

Here is the error message:

Object WSS_Content_PubSrv failed in event OnRestore. For more information, see the spbackup.log or sprestore.log file located in the backup directory.
SPException: The restore operation cannot locate the backup file F:\MSSQL\Backup\WSS_Content\SQL_WSS_Content_PubSrv_Full_201104111900.safe. Verify that the file exists and then run the operation again.

I tried mapped F to the F drive on the SQL server but it still fails.  I have full rights and the service account has read rights to that directory on the SQL server.   Share is full rights 


Video: SharePoint 2010 Integration with PowerShell

Learn about the new PowerShell integration in SharePoint 2010, which brings SharePoint administration in line with other server products such as Exchange. Understanding PowerShell is a must-have skill for SharePoint 2010 developers. (Length: 19:52)

PowerShell script to add/edit ContentEditor webpart on SharePoint 2010

Hi all, I'm new to PowerShell scripting with SharePoint. Following are the requirements that were given to me. Can any one direct me in the right direction interms of writing the script and how to save and execute the script? I am aware of Cmdlets. 1. Cycle through all sites in site collection 2. For each site, retrieve all document libraries 3. Look for specific CMV document library name (ie value communication, key business drivers, etc)          o add content editor web part if doesn't exist          o add/update appropriate description based on the document library name Thanks in advance...

Cannot install Sharepoint 2010 from powershell

I have been given the task of installing Sharepoint 2010 onto a Windows Server 2008 fresh OS. I am attempting to do this using Powershell as we will likely have to rebuild this machine later so i want the rebuild to be as quick as possible. I have setup the SPModules in powershell and add the path to to the PSModule variable. When i run the following command: PS C:\Windows\system32> Install-SharePoint -SetupExePath "location of software\setup.exe" -ConfigXML "location of software\Files\SetupFarm\config.xml" -PIDKey "my key" i get the error: Property 'Value' cannot be found on this object; make sure it exists and is settable. At D:\SPModule\spmodule.setup\Install-SharePoint.ps1:373 char:52 +             $CurrentConfigXml.Configuration.PIDKEY. <<<< Value = $PIDKey     + CategoryInfo          : InvalidOperation: (Value:String) [], ParentContainsErrorRecordException     + FullyQualifiedErrorId : PropertyNotFound even though the key is an argument. I then added the key to a copy of the config file and ran following: PS C:\Windows\system32> Install-SharePoint -SetupExePath "location of software\setup.exe" -ConfigXML "location of software\Files\SetupFarm\configpidkey.xml"

sharepoint 2010 Backup error !

While the job was execting a backup I received it message ! Object SharePoint_Config failed in event OnBackup. For more information, see the spbackup.log or sprestore.log file located in the backup directory. SqlException: Cannot open backup device 'C:\Backup\spbr0000\0000009D.bak'. Operating system error 3(The system cannot find the path specified.). BACKUP DATABASE is terminating abnormally. would you please help me ?BRUNO SOUZA

Sharepoint Designer Backup/Restore problem


I am trying to use Sharepoint Designer's backup and restore functionality to move a site from one server to another.  The backup seems to complete successfully, but when I go to restore the site: It gives an error pls restore a backup in empty site. can any body tell me what will be the steps of restore site and sub-sites.




version dependency while backup restore of SharePoint 2007 Site Collections


hi all

I am aware of a version dependency on the stsadm -o backup/restore operation.

But will the same dependency exist for a content DB backup restore..

i.e. for example will we able to restore a content DB backup taken from a server with version say to a server with say assuming that the versions of SQL is the same in both cases.

Will the version difference in SQL create issues

Thanks in advance




Your backup is from a different version of Microsoft SharePoint Foundation -- Sharepoint 2010


I made a backup of SharePoint farm from 2010 and tried to restore on a dev server and kept getting this error.  I looked at the versions of SharePoint on both servers, and they were identical:  14.0.4763.1000

I'm posting this although it is not a question, but a statement that might help someone else.  It took a while to notice that there had been an upgrade on the original server that the new dev box did not yet have... not an SP, but more like a hotfix type upgrade.

In Central Admin, go to "Upgrade and Migration".  Click on "Check product and patch installation status".  Scroll down the page of results and see if there are any links to updates that have been installed on the original server that are not on the new server, or vice-versa.  I did find a link on my original server.  Clicking on it opened the update page, so I copied the URL, went to my dev server, opened that page and installed the update, and voila!

Backup Exec 2010 -MOSS 07 GRT Restore troubles

I was just curious if anyone else had trouble restoring documents from Backup Exec 2010 SP1 ?  I'm at a client and whenever they try to restore a document library to their portal, only the folder is restored and none of the contents. Re-directed restores to file shares work fine.  Symantec support says to upgrade to R2 to fix it, but that this is not a 'known issue'.  Funny, because they didn't troubleshoot long and had a quick fix ready to manually re-link the document to the site!!  Seems a little shady. I'm just wondering if this client has a unique issue or if anyone else out there has experienced this problem as well?  I'd like to warn our other clients with the MOSS 2007/ BUE 2010 combo if this is common. 

sharepoint 3.0 service, database backup restore


I am using stsadm to run daily backup of the server, but would like to run hourly database backup, not sure if it works to restore database and log for sharepoint service 3.0, the db is on sql 2005 embedded edition. does any one know or has any suggestions to backup WSS3.0 hourly?

I tried the backup restore feature in the admin site, didn't get it work when last time the server crashes, so right now only use stsadm backup / restore.

SharePoint 2010 Backup Question


Hi Guys,

I have just configured my SP2010 backup and I want to make sure that I am not missing anything.  I was hoping I could list off steps and precautions I have taken and that you could lend me some of your expertise.

  • I have a MOSS server and a SQL2008 server.
  • Symantec Backup Exec backs up the content database every night.
  • I have created a script to backup the SharePoint config every night.  Saves it on my moss server in a backup directory.  (gets cleaned out every 7 days)
  • I have created a script to backup the //MOSS site every night into the same backup directory. (over writes itself every night)
  • This backup folder, is backed up nightly using Symantec Backup Exec as well.
  • I am also backing up the logs folder in the 14 hive (using Symantec)

Is there anything else I should be backing up???  Am I missing anything?

Thank you




Powershell installation of SharePoint Foundation 2010



I am attempting to do a silent farm installation of SharePoint 2010 via powershell using the SPModule commandlets and am running into the following error when attempting to run the Install-SharePoint command (passing the path to .exe and path to config.xml):

PS C:\Users\administrator.INETTEST2K3N> Install-SharePoint -SetupExePath "c:\install\setup.exe" -ConfigXml "c:\install\files\setupfarmsilent\config.xml"

The variable cannot be validated because the value C:\Users\ADMINI~1.INE\AppData\Local\Temp\2\config_2010_Jul_09_16_41_
28.xml is not a valid value for the ConfigXmlPath variable.
At C:\SPModule\spmodule.setup\Install-SharePoint.ps1:412 char:19
+     $ConfigXmlPath <<<<  = Join-Path $env:temp $ConfigXmlName
    + CategoryInfo          : MetadataError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ValidateSetFailure

I have tried this on both 2008 and 2008 R2 (x64) and keep getting this same error.

Any insight would be greatly appreciated!



Backup & Restore sharepoint site



I want to be able to back & restore of subsite in same application, or in another application, or another server. I want to make backup of site and restore it whereever I want :)



Can I back up a site from SharePoint 2010 server and restore it on a SharePoint 2010 Foundation serv



I had a simple site in a SharePoint 2010 server, and I backed it up. That server is not available anymore, and all I have available is a SharePoint 2010 Foundation server. Can I restore on that server? I got an error message saying that the versions of "SharePoint Foundation" on the two servers are different. Note that only one of the servers (the destination server) was running SharePoint Foundation, the other one had full SharePoint 2010.

I don't think I am using any features that are not part of SharePoint Foundation... it's an extremely simple site. Just a list with custom list forms edited in SharePoint Designer.



Backup SharePoint 2010 farm configuration settings only get an error for not enough disk space when



I am trying to do a backup the Backup using the Backup and Restore feature in SharePoint 2010 Central Administration.  I just want to backup only the farm configuration settings only.

so I followed the GUI 

Open CA Backup and Restore, checked the Farm checkbox,  click Next 

I chose the following:

Backup Type :  Full

Data to backup:  Back up only configuration settings

Backup File location  :   use an UNC shared location   \\servername\sharedname

at this point,  I see the Estimated disk space required is:   1.2 GB 

the server hard disk available space is  30 GB

but when i click the Start Backup,  i got an error in RED saying "There is not enough disk space. Free additional space on your hard disk and then try again. Approximate amount of space needed is 40 GB.   Amount of space free on disk:  30 GB."

Why is this happened?  and the estimated disk spaced required still showed at 1.2GB

If anyone had experience this problem and have a solution, please advice









ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend