Sharepoint automated restore task shedule not working
Posted: 29 Feb 2012 06:19
Hi Experts,
I have created a batch file and added in tasksheduler with high prority but I dont know why its not running successfully, In schedule taskmgr its show its running but notting happens
but when I run the batch file manully its working fine, please suggest
OS: windows 2008 rc2 server 64 bit
----------------------------------------------------------------------------------------------
@echo off
for /f "delims=" %%x in ('dir /od /a-d /b \\192.168.10.15\SPbackup\backup') do set recent=%%x
echo %recent%
stsadm -o restore -url http://spbackup.mydomain.com:80 -filename "\\192.168.10.15\SPbackup\backup\%recent%" -overwrite
@echo off
echo > "g:\SPbackup\endsat%current%.tmp"
@echo restore completed
pause
--------------------------------------------------------------------------------------------------------------------------------
I have created a batch file and added in tasksheduler with high prority but I dont know why its not running successfully, In schedule taskmgr its show its running but notting happens
but when I run the batch file manully its working fine, please suggest
OS: windows 2008 rc2 server 64 bit
----------------------------------------------------------------------------------------------
@echo off
for /f "delims=" %%x in ('dir /od /a-d /b \\192.168.10.15\SPbackup\backup') do set recent=%%x
echo %recent%
stsadm -o restore -url http://spbackup.mydomain.com:80 -filename "\\192.168.10.15\SPbackup\backup\%recent%" -overwrite
@echo off
echo > "g:\SPbackup\endsat%current%.tmp"
@echo restore completed
pause
--------------------------------------------------------------------------------------------------------------------------------