Windows Server - ntbackup schedule not working

Asked By Ben Bazian
08-Mar-07 05:05 AM
I have scheduled a backup on a Windows 2003 domain controller.  It is
scheduled to run at 11;00pm. When I look at the report in NT backup it
appears to launch the backup but the report is blank.  I am not seeing
anything in the event viewer.  If I go to the task and tell it to run the
scheduled task now the backup works just fine.

The server is logged in as administrator when the scheduled task launches.

Here is the scheduled tasks parameters.

C:\WINDOWS\system32\ntbackup.exe backup "@C:\Documents and
Settings\Administrator.BUSINESS\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\Daily Diff.bks" /n "Diff Backup"
/v:no /r:no /rs:no /hc:on /m differential /j "Daily Diff" /l:f /M
Differential  /p "4mm DDS" /um
MSFTNGP
(1)
TK
(1)
BUSINESS
(1)
NT
(1)
DDS
(1)
UNC
(1)
KB
(1)
InsteadWill
(1)
  Pegasus \(MVP\) replied...
08-Mar-07 05:52 AM
Give yourself some eyes by scheduling the batch file below instead of
the normal ntbackup command:

@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
C:\WINDOWS\system32\ntbackup.exe backup "@C:\Documents and
Settings\Administrator.BUSINESS\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\Daily Diff.bks" /n "Diff Backup"
/v:no /r:no /rs:no /hc:on /m differential /j "Daily Diff" /l:f /M
Differential  /p "4mm DDS" /um 1>>c:\test.log 2>>&1
echo %date% %time% End of task >> c:\test.log

When you examine c:\test.log then all will become clear.
  Ben Bazian replied...
09-Mar-07 04:45 PM
Thanks.  I will give it a shot.
  Ben Bazian replied...
18-Mar-07 04:45 AM
Here is what I get in the text log but it still does not run automatically.
The report shows blank.  If I manually run the schedule it runs fine.

Fri 03/16/2007 21:00:00.04 Start of task
User=Administrator, Path=C:\Program Files\Windows Resource
Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Fri 03/16/2007 21:33:02.12 End of task
  Pegasus \(MVP\) replied...
18-Mar-07 06:07 AM
It is highly likely that you're looking at the wrong
report file. The task too 33 minutes to complete,
hence it was very busy for more than half an hour.
Which report did you examine? Give the full path
and file name time stamp of the report!


automatically.
Backup"
Backup"
  Ben Bazian replied...
18-Mar-07 06:56 AM
C:\Documents and Settings\Administrator.BUSINESS\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\backup07.log.  The timestamp is
3/16/2007 9:33pm.  It is an empty text file.  I access the report from the
ntbackup menu.  If I run the schedule I get another report in the same
directory with all the proper logging.
  Pegasus \(MVP\) replied...
18-Mar-07 07:07 AM
You write "If I run the schedule I get another report in the same
directory with all the proper logging." I do not understand what
you're trying to say.

Invoke the scheduled task while you're actually logged on
as administrator. This will make the task visible and you will
see what it does during these 33 minutes.


Settings\Application
is
run
of
  Ben Bazian replied...
18-Mar-07 07:25 AM
If in invoke the schedule when logged in as administrator all works fine and
when going to the log I see the detail on the backup.  If I go the the
schedule and schedule it to run in a few minutes from now, it runs fine.  If
I have the schedule set to run at night it is not running.  I know this
makes no sense cause it makes no sense to me either. If it works it should
work.   The console is always logged in as administrator.  Hence, we know
the schedule works just not when it is scheduled to run at night.  The
schedule does appear to kick off at night, hence the creation of the empty
log and the logging info we get from the batch file you had me create.  If I
set the schedule to kick off in a few minutes from when I am editing it, I
get the same info in the log you had me generate and the job runs as
designed.

VERY WEIRD....

Am I making sense?
  Pegasus \(MVP\) replied...
18-Mar-07 07:54 AM
See below.

and
If

*** What you report here contradicts your earlier report
*** in which you quoted the start and finish time of the
*** scheduled task.


*** To track down the cause of your problem you must
*** greatly simplify things. Here is what I would do:
*** 1. Use the ntbackup wizard to create a new backup job.
*** 2. The job should back up the folder c:\Test (which you
***     should create and populate with a few files).
*** 3. The job should write its data to c:\test.bkf rather than to tape.
*** 4. The ntbackup job file should be c:\job.bks.
*** 5. The job should be scheduled to run under a dedicated
***     account called "Schedule", which you must create
***     and which must have admin privileges.
*** 6. You must untick the box "Run only if logged on".
*** 7. You must examine the Task Scheduler log file after
***     the job has run.

The above method circumnavigates half a dozen traps that
you might have stepped into.

fine.
It
to
/M
instead
  Ben Bazian replied...
18-Mar-07 08:04 AM
Will give this a shot and get back to you.  Thanks for all your time.
  George Kolady replied...
20-Mar-07 07:14 AM
I am facing the same problem on my servers.I think it has to do with the RSM service not refreshing the 4mm DDS tape in its database .Maybe these links will help



http://support.microsoft.com/kb/239892

http://support.microsoft.com/kb/267574/



Lemme know if you get an alternate solution



thanks in advance
  Ian-586-de replied...
19-Apr-07 06:34 AM
Hi,

I am having a similar problem, the clue to your problem is you say the

I found KB Article KB927073 which talks about blank log files and the fact
that the console is logged in.

Is there anyway around the issue?  That is my question.  If I create a
Schedule account does this avoid the problem?  I am Going to give it a go to
see.

But does anyone at MS know of a way of fixing the problem as described in
KB927073 ?

Thanks

Ian
  sal replied...
24-Apr-07 11:29 AM
I just solved this problem on my server but here is the catch. I was
trying to back up mapped drives. When you are not logged in the mapped
drives are not available. I put net use in the batch file and it
worked. I hope this helps someone figure out their problem. How I
figured this out was I ran the backup from the remote machine and
tried to backup to the removeable drive on the server which was shared
out. This time instead of a blank backup log I got one that read
removeable drive was not available when not logged in. I placed net
use in the batch file on the server and now the mapped drives are
backing up.
  Ian-586-de replied...
24-Apr-07 05:32 PM
Hi Sal,

Thanks for that.  My backup only consists of the local C: drive and the
server is just a file and print server, no exchange or anything like that.
Just plain vanilla backup...which "should" work ;-)

Ian.
  Pegasus \(MVP\) replied...
24-Apr-07 05:32 PM
You must be careful when mapping shares in a scheduled jobs.
UNC coding is fine but if you map drive letters to shares then
you are likely to run into trouble.
  Hank Arnold replied...
27-Apr-07 04:46 AM
Don't use mapped drives. Use the UNC name for the drive/resource.....

Regards,
Hank Arnold
help
by not gracefully removing the faild DC. The name of the new server is LEEAL04-NT and the Failed server was LEE02-NT. Here are a few of the DNS records from the new server: Information 1 / 2 2008 1:17:41 PM DNS None 3 N / A LEEAL04-NT Warning 1 / 2 / 2008 1:13:03 PM DNS None 3000 N / A LEEAL04-NT Information 1 / 2 / 2008 1:12:20 PM DNS None 6522 N / A LEEAL04-NT Information 1 / 2 / 2008 1:11:56 PM DNS None 6522 N / A LEEAL04 NT Information 1 / 2 / 2008 1:11:27 PM DNS None 6522 N / A LEEAL04-NT Information 1 / 2 / 2008 1:11:03 PM DNS None 6522 N / A LEEAL04-NT Information 1 / 2 / 2008 1:10:44 PM DNS None 3150 N / A LEEAL04-NT
Microsoft \ Fax 2) HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Fax 3) C: \ Program Files \ Microsoft Windows Small Business Server \ fax 4) The ''SBSMIS-FAX.log'' file under ''C: \ Program Files \ Microsoft Integration \ Windows Small Business Server 2003 \ Logs''. 5) The ''SBSMSI-faxcfg.log'' file under ''C: \ Program Files \ Microsoft Integration Windows Small Business Server 2003 \ Logs''. 6) The ''faxsetup.log'' file under ''C: \ WINDOWS \ ''. B. Delete the following Add / Remove Programs again'', this time, we will click ''Change / Remove'' on the ''Windows Small Business Server 2003'' item: 1) Click ''Next'' on the ''Microsoft Windows Small Business Server Setup'' page. 2) Click ''Next'' on the ''Windows Configuration'' page. Note: It states that guide the finish the reinstallation. F. Once the removal process is completed, access ''Windows Small Business Server setup'' again in ''Add / Remove Programs'', proceed to the ''Component Selection'' page, and then working fax modem to have a try. More information: How to set up the Small Business Server 2000 Shared Fax service http: / / support.microsoft.com / kb / 325807 / en-us (KB325807) Managing Fax in Windows Small Business Server http: / / technet2.microsoft.com / WindowsServerSolutions / SBS / en / library / 6d062e33 -613e-437e-ba03-76724f0f2b211033.mspx
can you post the log? Russ - - SBITS.Biz Microsoft Gold Certified Partner Microsoft Certified Small Business Specialist. MCP, MCPS, MCNPS, (MCP-SBS) North America Remote SBS2003 Support - http: / / www.SBITS.Biz Information on Small Business Server 2008 - http: / / www.sbs2008.com Information on Essentials Business Server - http: / / www.ebs2008.com - Here is the log showing the errors. What I did 56K V.92 DFVc Modem" "C: \ Documents and Settings \ All Users \ Application Data \ Microsoft \ Windows NT \ MSFax \ Queue \ 1C8808AFD0A93.tif" 7054 "Weavers Marine" "ScaggsBros" "" " " 2 3 / 7 / 2008 15:23:18 56K V.92 DFVc Modem" "C: \ Documents and Settings \ All Users \ Application Data \ Microsoft \ Windows NT \ MSFax \ Queue \ 1C88090F9DBD9.tif" 0 "Weavers Marine" "41036323336" "" " " 0 15:37:53 "Conexant D850 56K V.92 DFVc Modem" "C: \ Documents and Settings \ All Users \ Application Data \ Microsoft \ Windows NT \ MSFax \ Queue \ 1C880926DA4B3.tif" 45310 "Weavers Marine" "41056103886" "" " " 2 call was terminated" "0x40000802" 3 / 7 2008 17:59:45 3 / 7 / 2008 18:00:50 Users \ Application Data \ Microsoft \ Windows NT \ MSFax \ Queue \ 1C880A6EF8DE7.tif" 0 call was terminated" "0x40000802" 3 / 7 / 2008 22:24:35 3 / 7 / 2008 22:25:41 Users \ Application Data \ Microsoft \ Windows NT \ MSFax \ Queue \ 1C880CBEF18B7.tif" 0 received correctly" "0x40000804" 3 / 8 / 2008 04:55:56 3
been going on for months now. Main Server: Windows Server 2003 R2 Terminal Server: Small Business Server Clients: Mix of XP and 2000 (mainly XP) Errors on TS after problem: Unable administrator on RLSERVER : Logging Mode - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- OS Type: Microsoft(R) Windows(R) Server 2003 for Small Business Server OS Configuration: Primary Domain Controller OS Version: 5.2.3790 Terminal Server Mode: Remote threshold: 500 kbps Domain Name: rdisent Domain Type: WindowsNT 4 Applied Group Policy Objects - -- -- -- -- -- -- -- -- -- -- -- -- -- -- Small Business Server Auditing Policy Default Domain Controllers Policy Small Business Server Client Computer Small Business Server Remote Assistance Policy Small Business Server Lockout Policy Small Business Server Domain Password Policy Default Domain Policy Local Group Policy The following GPOs were not applied because they were filtered out - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Small Business Server Internet Connection Firewall Filtering: Denied (WMI Filter) WMI Filter: PreSP2 Small Business Server Windows
by not gracefully removing the faild DC. The name of the new server is LEEAL04-NT and the Failed server was LEE02-NT. Here are a few of the DNS records from the new server: Information 1 / 2 2008 1:17:41 PM DNS None 3 N / A LEEAL04-NT Warning 1 / 2 / 2008 1:13:03 PM DNS None 3000 N / A LEEAL04-NT Information 1 / 2 / 2008 1:12:20 PM DNS None 6522 N / A LEEAL04-NT Information 1 / 2 / 2008 1:11:56 PM DNS None 6522 N / A LEEAL04 NT Information 1 / 2 / 2008 1:11:27 PM DNS None 6522 N / A LEEAL04-NT Information 1 / 2 / 2008 1:11:03 PM DNS None 6522 N / A LEEAL04-NT Information 1 / 2 / 2008 1:10:44 PM DNS None 3150 N / A LEEAL04-NT