Wednesday, October 8, 2008

Automate MOSS 2007 Backup


To automate the backup activity of MOSS 2007 portal Server we use to do the following two steps...
1. Creation of Batch file: Here we create a batch file which will execute the stsadm.exe, passing necessary parameters to perform the backup activity in command prompt.

Batch file Code as follows:

@echo off
echo ====================================================
echo Backup Script For Office SharePoint Server 2007
echo ====================================================
@echo off


stsadm.exe -o backup -directory "\\SOME FOLDER" -backupmethod full -item "Farm" -overwrite

echo completed

2. Scheduled Tasks: In this step we can create a scheduled task (Control Panel --> Scheduled Tasks) to execute the batch file at a preferred frequency of time.

Thus your backup is automated, its advisable to the monitor free space available on the disk regularly...

Now recently there are new tools available to take backups.And they come with more cool features. If you use some interesting tools or any other technique, feel free to let us know :)

Warm Regards
Mohammed Fauzi ~ 4Z

No comments: