Welcome to ServerForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Backup scripts stalls

 
   Windows Server (Home) -> Windows Server Scripting RSS
Next:  win2003 (AD) Folder Redirection is missing  
Author Message
rghabel




Joined: Jan 11, 2010
Posts: 1



(Msg. 1) Posted: Mon Jan 11, 2010 6:35 pm
Post subject: Backup scripts stalls

Hello everyone,

I've been finding myself stumped on a script that is stalling after NTBackup completes. I have the script written to backup data files, then a system state. If i run the script manually, and close NTBackup while it's backing up data files, the script completes correctly. If I let the script run its course naturally, NTBackup completes successfully (according to the NTBackup Logs) but the script doesn't continue. In fact the server freezes and requires a restart.
This script does seem to work fine on other servers. So I'm inclined to think my problem lies somewhere with the size of the backup.

The data being backup is 250GB located on a 6TB partition (DSmile. I have tried setting the script to backup to both the local C: and D: drive, which didn't make a difference. The System State is around 3GB. There is 500GB of free space on C: and 2TB free on D:

This is a small file server running AD and DHCP. It only has 1GB of ram, but doesn't seem to need more than 768...

The full script can be found here:
http://pastebin.com/m4e73a611
(the problem is line 3Cool

I'd love some suggestions...
Rob

Here is an excerpt from the script that's causing my difficulties:
C:
REM ----------------------------------------------------------------
REM Backup the %backupfile1% directory
start /low /wait "Backup" ntbackup backup "@%backupdest%\%backupfile1%.bks" /J "%backupfile1%" /f "%backupdest1%\%backupfile1%.bkf" /v:yes /M normal

REM Set the logfile so it can be viewed in notepad
setlocal ENABLEDELAYEDEXPANSION
set file=N
set folder=C:\Documents and Settings\Backup\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data
for /f "Tokens=*" %%a in ('dir "%folder%\backup*.log" /b /O-D') do if "!file!" EQU "N" set file=%%a

REM Copy the logfile to the %backupdest% directory
copy "%folder%\!file!" %backupdest%\%backupfile1%.txt /y
endlocal

REM Copy the backup file to a second disk REM - Temporarily Disabled
REM COPY "%backupdest%\%backupfile1%.bkf" "C:\%backupfile1%.bkf"

REM ----------------------------------------------------------------
REM Backup of this Server's system state
start /low /wait "Backup" ntbackup backup "@%backupde /J "%backupfi le1%" /f "%backupdest1%\%backupfile1%.bkf" /v:yes /M normal
start /low /wait "Backup" ntbackup backup systemstate /J "%computername%State" /f "%backupdest%\%computername%State.bkf" /v:yes /M normal

REM Set the logfile so it can be viewed in notepad
setlocal ENABLEDELAYEDEXPANSION
set file=N
set folder=C:\Documents and Settings\Backup\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data
for /f "Tokens=*" %%a in ('dir "%folder%\backup*.log" /b /O-D') do if "!file!" EQU "N" set file=%%a

REM Copy the logfile to the %backupdest% directory
copy "%folder%\!file!" %backupdest%\%computername%State.txt /y
endlocal

REM Copy the backup file to a second disk REM - Temporarily Disabled
REM COPY "%backupdest%\%computername%State.bkf" "C:\%computername%State.bkf"

 >> Stay informed about: Backup scripts stalls 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
WMI scripts for IIS 6 - Hi there I'm trying to write a wmi script for IIS 6 that will create new application pools. The trouble im having is that a can't seem to find a method in any the classes that will do this. Is there one available or is there some other work around that....

Help with scripts - Listen, I am new to writing VB scripts, but wonder if someone can give me some help. I want to write a vb script that will run at login in a new policy i want to make. Basically I want to run a exe file with the needed switches. If the file i want t...

Need help about scripts - hi all, this is me mohammed tantawi egyptian 27 years, working in saudi arabia as assistant network admin. this is the first time for me to use script, but i have question , if i take a copy from the script , i need to know how can i upload the..

scripts ? - this is my first time i use scripting if i want to use a script i have to write it at the notpad and save it as patch file or how ? plz help me ex:ghass.bat or what ? thx

Looking for two Scripts - I know absolutley nothing about scripting but I know I have seen some scripts before that could be very useful to me. I know this has been asked a hundred times but I cannot find it. I am looking for two scripts. The first script I would like to....
   Windows Server (Home) -> Windows Server Scripting All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]