How to Perform the Backup/Restore SPSite operations using PowerShell

BackUp

Syntax
  1. Backup-SPSite [-Identity] <SPSitePipeBind> -Path <String> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>]  
  2. [-NoSiteLock <SwitchParameter>] [-UseSqlSnapshot <SwitchParameter>] [-WhatIf [<SwitchParameter>]] 
Example
  1. Backup-SPSite http://gauti.sharepoint.com/sites/site_name -Path C:\Backup\site_name.bak  Restore:
Syntax
  1. Restore-SPSite [-Identity] <String> -Path <String> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-ContentDatabase  
  2. <SPContentDatabasePipeBind>] [-Force <SwitchParameter>] [-GradualDelete <SwitchParameter>] [-HostHeaderWebApplication <String>] [-PreserveSiteID <SwitchParameter>] [- 
  3. WhatIf [<SwitchParameter>]] 
Example
  1. Restore-SPSite http://gauti.sharepoint.com/sites/site_name -Path C:\Backup\site_name.bak 
Thanks for reading my blogs!!
Ebook Download
View all
Learn
View all