Someone left a comment today on an old post asking about writing batch file scripts to backup Sharepoint 2007. Here is an example of one that I have written:
@echo off
echo ====================================================
echo Backup Script For Office SharePoint Server 2007
echo ====================================================
@echo off
stsadm.exe -o backup -url http://youresite -filename c:whereyouwanttosavethebackupforyoursitecollection -overwrite
@echo off
echo completed
I run this off of the built in Scheduler on Server 2003 every Monday, Wednesday, and Friday. I have three batch files. I usually have two lines of stsadm.exe command lines, so that I can backup the SSP also. I put the batch files in "C:program filescommon filesMicrosoft Sharedweb server extensions12BIN", so that the files have easy access to Stsadm.exe. I have tested the products before when me or a colleague mess up a page in Sharepoint. We have actually used the restore command in a vpc brought back the sites and gone into Sharepoint Designer to get a single site to port back to the client site. I think that if you are running a Sharepoint Site used by multiple people that you should at least back up your files twice a week. If anyone has any questions please post comments and I will try to get back to you as soon as possible.