Tuesday 2 May 2017

How To Backup And Restore The Site Collection With Specific Content Database Using PowerShell In SharePoint 2013

1. Backup

Backup-SPSite "URL" -Path "C:\Site_Backup\Portal_Backup.bak" -F

2. Restore 

Restore-SPSite -Identity "URL" -Path "C:\Site_Backup\Portal_Backup.bak" -ContentDatabase "Content_Database_Name"  -Verbose -force

Note: It is recommended to take backup other than c drive 

No comments:

Post a Comment