Schedule problem with NTBACKUP

S

Stephane Vial

Hi,

We are trying to schedule a NTBACKUP job for backuping the Exchange 2003

When we running the script manually, the backup is completed succesfully but
when we schedule it, we have an error message

Error message :
Backup Status
The operation was not performed because the specified media cannot be
found.


Script used:
C:\WINNT\system32\NTBACKUP.EXE backup "@E:\Exchange.bks" /n "Media_LuS1" /d
"Label_Exchange_LuS1" /v:no /r:no /rs:no /hc:blush:ff /m normal /j
"Backup_Exchange_LuS1" /l:s /f "E:\LundiS1\Backup_Exchange.bkf"

We also use this command to make sure that the network drive is never
disconnected.
net config server /autodisconnect:-1

Thanks for your help
 
P

Pegasus [MVP]

Stephane Vial said:
Hi,

We are trying to schedule a NTBACKUP job for backuping the Exchange 2003

When we running the script manually, the backup is completed succesfully
but when we schedule it, we have an error message

Error message :
Backup Status
The operation was not performed because the specified media cannot be
found.


Script used:
C:\WINNT\system32\NTBACKUP.EXE backup "@E:\Exchange.bks" /n "Media_LuS1"
/d "Label_Exchange_LuS1" /v:no /r:no /rs:no /hc:blush:ff /m normal /j
"Backup_Exchange_LuS1" /l:s /f "E:\LundiS1\Backup_Exchange.bkf"

We also use this command to make sure that the network drive is never
disconnected.
net config server /autodisconnect:-1

Thanks for your help

Create the following batch file, then invoke it via the Task Scheduler:
@echo off
echo %date% %time% %UserName% >> c:\test.txt
cacls e:\LundiS1 1>>c:\test.txt 2>>&1
dir E:\LundiS1 1>>c:\test.txt 2>>&1
copy /y %comspec% E:\LundiS1\ 1>>c:\test.txt 2>>&1
C:\WINNT\system32\NTBACKUP.EXE backup "@E:\Exchange.bks" /n "Media_LuS1" /d
"Label_Exchange_LuS1" /v:no /r:no /rs:no /hc:blush:ff /m normal /j
"Backup_Exchange_LuS1" /l:s /f "E:\LundiS1\Backup_Exchange.bkf"

echo %date% %time% >> c:\test.txt

Now examine the log file c:\test.txt. It will probably tell you what's
wrong. If not then post its content in your reply.
 
S

Stephane Vial

We found the solution !

The scheduler is not working correctly when a network drive is used....

So we used the UNC instead of the share name and all is working fine

Thanks
 
P

Pegasus [MVP]

The scheduler actually works correctly both for mapped and for UNC drives.
However, drives mapped in the foreground are *not* visible to scheduled
tasks because they operate in an independent context. Furthermore, if nobody
is logged on then there will be no drives mapped to a network share. Using
UNC mapped shares is the correct solution.
 
A

Alan Auerbach

I am having the same problme but I do not understand the solution. I am using
a mapped network drive. How do I use UNC? What is the problme with a mapped
drive (this used to work but has suddenly stopped working)?

Thank you in advance,
/s/ Alan Auerbach
 
P

Pegasus [MVP]

Alan Auerbach said:
I am having the same problme but I do not understand the solution. I am
using
a mapped network drive. How do I use UNC? What is the problme with a
mapped
drive (this used to work but has suddenly stopped working)?

Thank you in advance,
/s/ Alan Auerbach

Please start your own thread and describe exactly what you're doing, in
particular:
- The account you use for the job
- If it is the same as a current foreground account
- The exact command you use
- The contents of the ntbackup log file
 
A

Alan Auerbach

Dear Pegasus,

Thank you for replying so promptly.

I would start a new thread if I could. When I click on new then question, an
exclamation point shows up in a yellow star next to the curor (I allowed
popups for the site) so I cannot start a thread.

Unfortunately, I do not know the answers to any of your questions. I am an
administrator on the machine and that is how I logon. I do not use any
command. I use the Backup Utility that came with Windows Server 2003. I would
not know where to find a log file. The report always reads:

Backup Status
The operation was not performed because the specified media cannot be found.

Best wishes,
/s/ Alan Auerbach
 
P

Pegasus [MVP]

*** See below.

Alan Auerbach said:
Dear Pegasus,

Thank you for replying so promptly.

I would start a new thread if I could. When I click on new then question,
an
exclamation point shows up in a yellow star next to the curor (I allowed
popups for the site) so I cannot start a thread.
*** I assume you're using a web interface to read/create posts.
*** I strongly recommend you use a proper newsreader, e.g.
*** Outlook Express. Create a news account with "news.microsoft.com",
*** then add the appropriate newsgroups. "Win2000.general" is obviously
*** not appropriate but "windows.server.general" might be a reasonable
*** choice.
Unfortunately, I do not know the answers to any of your questions. I am an
administrator on the machine and that is how I logon.
*** The question was: Which account do you use for the *scheduled*
*** backup task.
I do not use any
command. I use the Backup Utility that came with Windows Server 2003.
*** The utility created a scheduled task which you can see clearly
*** among the other scheduled tasks you have. It shows you the
*** ntbackup command line created by the Backup Utility.
I would not know where to find a log file.
*** C:\Documents and Settings\xxx\Local Settings\Application Data\
*** Microsoft\Windows NT\NTBackup\data\*.log
*** Replace "xxx" with the correct account name used for the
*** scheduled task.
*** Note that checking your backup logs is absolutely essential
*** for a reliable backup operation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top