Thursday, May 21, 2009

Backup Script for MOSS 2007

Having a good backup in place should allow you (and your business users) to sleep better at night... knowing that your SharePoint data is protected. MOSS 2007 has some fantastic backup/restore functionality... but it still doesn't have a scheduler. However, it is possible, like with SPS 2003, to create a batch job to use the stsadm tool for a scheduled backup.

The script looks like this and is very easy to implement. Remember, check the date stamps on you files often to ensure that things are running successfully.
@echo off
echo ====================================================
echo Backup Script For Office SharePoint Server 2007
echo ====================================================
cd \program files\common files\micrsoft shared\web server extensions\12\bin
@echo offstsadm.exe -o backup -url http://servername -filename c:\backupssharepoint\backupsharepoint.dat -overwrite
@echo off
echo completed

~ Gangadhar Kotu

No comments: