Backup SIteCollection
Backup-SPSite http://sitename.com/ -Path D:\backupfilename.bak –UseSqlSnapshot
Create New SiteCollection
Get-SPWebTemplate
$template = Get-SPWebTemplate "DEV#0"
New-SPSite -Url "http://domain:port/sites/sitename" -OwnerAlias "domain\username" -Template
Restore SiteCollection Backup
Restore-SPSite -Identity http://domain:port/sites/sitename -Path "D:\backupfilename.bak" -Verbose -
Enable Developer Site Feature
Enable-SPFeature e374875e-06b6-11e0-b0fa-57f5dfd72085 -url http://domain:port/sites/sitename
No comments:
Post a Comment