Saturday, 23 March 2013

Batch file: STSADM backup for MOSS


@SET stsadm="c:\program files\common files\microsoft shared\web server extensions\12\bin\stsadm.exe"
@SET DIR=D:\Backups\
@SET Log=D:\Backups\Backup_VSSR.txt

Echo Backing up- VSSR>>%LOG%
%stsadm% -o backup -url "http://servername/" -filename "%DIR%VSSR.bak" -backupthreads 5 >>%LOG%
time /t >>%LOG%

Pause

รจ Save as .bat

No comments:

Post a Comment