Search This Blog

Wednesday, 22 April 2015

Powershell - Back up and Restore of Sitecollection

# Back up site collection
$UrlWebApp = Read-Host "Enter site URL to Backup "
$location = Read-Host "Enter Location to backup (Eg:C:\SharePointBackups\Tutorials.bak)"

backup-spsite -identity $UrlWebApp -path $location


# Restore site collection

#Restore-spsite -identity $UrlWebApp -path $location

No comments:

Post a Comment