MOSS MVP

I've moved my blog to http://blog.falchionconsulting.com!. Please update your links. This blog is no longer in use--you can find all posts and comments at my new blog; I will no longer be posting to this site and comments have been disabled.

Wednesday, October 22, 2008

Colorado Springs SharePoint User Group Meeting Slides

I'm a bit late in posting this but it's been a crazy couple of weeks.  I promised my slide deck and scripts so here they are:

image STSADM.pptx
image Change Password Script
image Sample Install Script

And here's the "quick and dirty" batch file that I showed which demonstrates an easy way to store the last 10 backups of all your site collections within a web application:

SET FOLDERNAME=%2
SET DIR=c:\backups\%FOLDERNAME%\
SET URL=%1
mkdir %DIR%
rmdir /S /Q %DIR%%FOLDERNAME%10
ren %DIR%%FOLDERNAME%9 %FOLDERNAME%10
ren %DIR%%FOLDERNAME%8 %FOLDERNAME%9
ren %DIR%%FOLDERNAME%7 %FOLDERNAME%8
ren %DIR%%FOLDERNAME%6 %FOLDERNAME%7
ren %DIR%%FOLDERNAME%5 %FOLDERNAME%6
ren %DIR%%FOLDERNAME%4 %FOLDERNAME%5
ren %DIR%%FOLDERNAME%3 %FOLDERNAME%4
ren %DIR%%FOLDERNAME%2 %FOLDERNAME%3
ren %DIR%%FOLDERNAME%1 %FOLDERNAME%2

mkdir %DIR%%FOLDERNAME%1

stsadm -o gl-backupsites -url %URL% -path %DIR%%FOLDERNAME%1 -scope webapplication

Just create a schedule task and pass in the URL to the web application and a directory friendly name to store the files under: c:\>backup.bat http://portal portal

It's crude but it works :) - just remember that this is a stop gap that you can use until you get your backup strategy worked out - it's also helpful for development environments - just don't rely on this as your production backup strategy!

2 comments:

wayne said...

the link to the slideshow seems to be broken

Gary Lapointe said...

I didn't realize my ISP was blocking pptx files - fixed now - thanks for the heads up.