@echo off @echo -------------------------------------------------------- @echo Backing Up site http://localhost/ @echo --------------------------------------------------------
cd \Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
@echo Generating File Name using current Date Time and Year FOR /F "TOKENS=1,2 DELIMS=/ " %%A IN ('DATE /T') DO SET mm=%%B FOR /F "TOKENS=2,3 DELIMS=/ " %%A IN ('DATE /T') DO SET dd=%%B FOR /F "TOKENS=3* DELIMS=/ " %%A IN ('DATE /T') DO SET yyyy=%%B
set bDate=%mm%%dd%%yyyy% echo %bDate%
@echo off
stsadm -o backup -url http://localhost/ -filename "D:\Backup\backup_%bDate%.bak" @echo Backup Completed
Richard Mueller edited Revision 1. Comment: Removed (en-US) from title, added tags
Balaji M Kundalam edited Revision 2. Comment: Added tags
Richard Mueller edited Revision 4. Comment: Removed extra space in tag "SharePoint 2010"
Patris_70 edited Original. Comment: added en-US title and tag
Could be a Gallery script item..
gallery.technet.microsoft.com
Hi Amit,
Thankx for suggestion, i have post this in gallery section.
Help full Script.