Automating Site Collection Backups with PowerShell

A script for automating site collection backups via STSADM commands was included in the previous version of this book. This script was one of the most asked-for scripts from the book because it enabled administrators to back up individual site collections to flat files on a nightly basis. Although useful, this script was a four-page Visual Basic script and had some complex logic in it that would enumerate site collections and back them up individually.

SharePoint 2010 now allows for the same functionality, from a simplified interface. You can completely automate the backup procedure with built-in SharePoint PowerShell cmdlets. The following sample script demonstrates some additional things than ...

Get Microsoft SharePoint 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.