Saturday, October 20, 2012

Restore Site BackUp Using Powershell

Add-PsSnapin Microsoft.SharePoint.Powershell –ErrorAction SilentlyContinue

      Write-Host  
      Write-Host  
      Write-Host "Backup starting at $backupStart for $Site "  
      Write-Host "******************************************"
     Restore-SPSite -Identity http://globas:1040/ -Path "E:\Sharepoint\FirstPrincipal\SiteBackUp\FPBakup\Latest\fp_04oct2012-latest.bak" -force   
   
      Write-Host  
      Write-Host  
      Write-Host "Backup Completed at $backupComplete for $Site "  
      Write-Host "******************************************"

Write-Host "Finished! Press enter key to exit." -ForegroundColor Green
Read-Host

No comments:

Post a Comment