PowerShell To Backup Site Collection

With Windows PowerShell you can now back up your SharePoint Site Collections either one off or using scripts that can be scheduled.

Although you can use the Central Administration to back up your site collection as a once off task, you get additional options using Windows PowerShell, such as using SQL Snapshots for backing up SharePoint 2010 Site Collections.

Backup-SPSite http://server_name/sites/site_name -Path C:\Backup\site_name.bak

Get-SPSiteAdministration http://server_name/sites/site_name | Backup-SPSite -Path C:\Backup\site_name.bak

Backup-SPSite http://server_name/sites/site_name -Path C:\Backup\site_name.bak –UseSqlSnapshot

Note: You can use the UseSqlSnapshot parameter only if you are hosting your content database on SQL Server Enterprise Edition / SQL Server Developer Edition.

Windows PowerShell also gives you the flexibility of backing up several site collections using the thread parameter.

Related posts:

  1. PowerShell To Add Secondary Site Collection Admin
  2. PowerShell To Create a New Site Collection
  3. PowerShell To Delete Site Collection
  4. PowerShell To Retrieve All Site Collections for Web Application
  5. PowerShell To List Site Template

2 Comments so far »

  1. Kane said,

    Wrote on May 5, 2010 @ 2:08 pm

    Hi, I need to ask something that regard the lookup field for the sharepoint site custom template.

    Once I create a site based on the custom template, all the lookup field for the list are empty.

    Any solution for this? please.

  2. Bill Smith said,

    Wrote on May 7, 2011 @ 5:41 am

    Could you kindly give me the instruction to use PowerShell to backup a site collection.

Comment RSS · TrackBack URI

Leave a Comment

Name: (Required)

E-mail: (Required)

Website:

Comment:

Comment moderation is enabled. Your comment may take some time to appear.