Backup-SiteCollections

This script was designed to be scheduled and forgotten. This loops through all of your web applications and site collections and backs up each one individually. Each backup is prefixed with the current date and time. Old backups (3 days or older by default) are deleted. A log file is created to track the backup process.

The settings can be changed by editing the file
$backupFolder = "c:\asdfwer\" #full path to where you want the backups to be copied to, include the ending \
$backupFiletype = ".bak" #backup file extension, include the .
$backupDaystoKeep = 3 #positive number of backups to keep
$backupLogName = "log.txt" #name of the log, will be prefixed with date

Last edited Sep 7, 2011 at 4:04 PM by DavidLozzi, version 3

Comments

No comments yet.