I have a weird problem with NtBackup with Windows 2003 Server. I wrote a
backup-script wich is started with the task-planer. When i start the script
manually it will always work.
When it gets started by the task-planer it will work sometimes sometimes
not. When it doesnt work it stops with Eventnr 8017 "Insufficient memory".
Heres the script:
REM @echo off
REM ****** Gesamt-Backup W2k3 ******
REM
REM Stand: 11.03.04 Mü2, 29.03.04 Mü2
REM
REM *** Wechselmedien-Dienst starten ***
net start "Wechselmedien"
REM *** Aktuellen Tag ermitteln (- ein Tag, da jew. Sich. am nä. Morgen) ***
rem *** W2k3: Da für System-Account die Date-Biege nicht sauber fkt.,
BackupDay setzen ***
set BackupDay=Backup %DATE% %TIME:~0,5%
REM *** Backupvorgang ****
rem *** Bänder verfügbar machen und Band im Streamer zum Überschreiben
vorbereiten ***
rsm view /tlogical_media /b > %TEMP%\logical_media-guids.txt
for /f %%a in (%TEMP%\logical_media-guids.txt) do rsm deallocate /lg"%%a"
rsm freemedia /lf"HP C5683A SCSI Sequential Device"
rem *** NTBACKUP-Settings laden: ***
regini D:\Apps\Scripts\Backup\ntbackup-w2k3.key
rem *** Ausführen NTBACKUP: ***
%SystemRoot%\system32\ntbackup.exe backup
"@D:\Apps\Scripts\Backup\FullBackup.bks" /J "%COMPUTERNAME%, gesamt" /P "4mm
DDS" /N "%BackupDay%" /D "%COMPUTERNAME%, gesamt, %BackupDay%" /V:no /R:no
/L:s /M normal /RS:no /HC
n /SNAP
n /um
rem *** Log-Datei mit aktuellem Datum im Namen sichern in %SystemRoot%\LOG:
***
if exist "%SystemRoot%\LOGs\Backup_%DATE%.log" copy
"%SystemRoot%\LOGs\Backup_%DATE%.log" "%SystemRoot%\LOGs\Backup_%DATE%.lo~"
if not exist "%SystemRoot%\LOGs\Backup_%DATE%.lo~" copy
"%USERPROFILE%\Lokale Einstellungen\Anwendungsdaten\Microsoft\Windows
NT\NTBackup\data\backup01.log" "%SystemRoot%\LOGs\Backup_%DATE%.log"
if exist "%SystemRoot%\LOGs\Backup_%DATE%.lo~" copy /b
"%SystemRoot%\LOGs\Backup_%DATE%.lo~" + "%USERPROFILE%\Lokale
Einstellungen\Anwendungsdaten\Microsoft\Windows
NT\NTBackup\data\backup01.log" "%SystemRoot%\LOGs\Backup_%DATE%.log"
if exist "%SystemRoot%\LOGs\Backup_%DATE%.lo~" del
"%SystemRoot%\LOGs\Backup_%DATE%.lo~"
REM *** Band auswerfen: ***
rsm eject /lf"HP C5683A SCSI Sequential Device"
REM *** Bereinigen: ***
rem *** TEMPs löschen ***
del %TEMP%\logical_media-guids.txt
Please ignore format errors.
Any idea why this script will work sometimes and why not?
Thnx in advance
Milenko
mailto:support@mido-edv.de