Site Collection Backup
Special thanks goes out to Darrin Bishop on this. His blog entry was the starting point of my first attempt at PowerShell scripting.

This script can be used to backup every site collection within a web app. You set it up with a web app url and a backup directory. It will locate all the site collections in the web app and call stsadm to back each of them up.

Backups are created in a subdirectory named in the format yyyyMMdd. You can also give a number of days worth of backups to keep. It will then look for a folder by the name yyyyMMdd created x days ago and deletes it.

Get It: PowerShell Scripts

More Information
You may find more information available on:
My business site -
My blog -


Last edited Jul 7, 2008 at 2:33 AM by RyanLMiller, version 6


RyanLMiller Jul 29, 2008 at 5:01 PM 
Please use the discussion board for any comments.