Tech Support > Microsoft Windows > Windows Server > Scheduled NTBackup on W2003 Server quits with "Insufficient memory"
Scheduled NTBackup on W2003 Server quits with "Insufficient memory"
Posted by Milenko Doroslovacki on September 17th, 2004


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 /HCn /SNAPn /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






Posted by Milenko Doroslovacki on September 17th, 2004


Sorry i forgot my HW Description:
Windows 2003 Server Std.
Intel P4 2.6 on Intel-Mobo PBZ
ICP-Vortex Raid-Controller with RAID1 36GB
HP DDS40i DAT-Streamer

I think thats all that is important.

"Milenko Doroslovacki" <service@mido-edv.de> schrieb im Newsbeitrag
news:u5VieyKnEHA.3708@TK2MSFTNGP10.phx.gbl...


Posted by michitsch@gmail.com on December 13th, 2004


Maybe try my free NTBackupScript which is just for Windows Server 2003.
I hope it solves your problems. I've found that my restarting or
refreshing the "Removable Storage" service (NtmsSvc) in the script that
(hopefully) it works more reliably. It's at http://ntbackup.no-ip.com