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:

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!