Solved

Using NTBACKUP command in a batch program

Posted on 2000-04-02
6
202 Views
Last Modified: 2013-12-28
I use the NTBACKUP windows NT 4.0 command in a batch program to make a copy of the database files to a tape.
It works perfectly if the tape is inserted when the batch program is launched. But the program stops when it doesn't detect the tape: the backup is not done and database management Software is not started.

How can I detect the tape or handle this anomaly to avoid this situation?

0
Comment
Question by:silva_jp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 

Expert Comment

by:NickMorgan
ID: 2679165
What do you want to happen?
NTBACKUP obviously cannot perform a backup to tape if there is not tape in the drive. What is the bit about the database management software? Does this just run after the backup has completed? Does it need to be in the same batch script?

Cheers,Nick
0
 
LVL 4

Expert Comment

by:wlaarhov
ID: 2681107
A friend of me once programed a tool in C++ that was able to give the tape streamer status back in an errorlevel.
The different outputs where 0)tape and streamer ok 1)no tape 2)tape write protect 3)tape read error, and perhaps a couple more.
It can be used in a batchfile, and was used to allert system admins of streamer status 1 hour before the actual backup.
I can ask if he is willing to give you the tool.
If so I'll get back, and ask for your email address to send it to.
0
 
LVL 4

Accepted Solution

by:
wlaarhov earned 120 total points
ID: 2685152
He said it's ok to give the tool away, so just give an email address to send it to.
to get all things clear, this tool runs BEFORE Ntbackup, and makes the dissision for you if it is ok to start the backup procedure or just skip it.
I will send a sample batch along with the prog.
0
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 

Author Comment

by:silva_jp
ID: 2689383
TO: wlaarhov

I'll appreciate your help.
My email address is: silva_jp@yahoo.com.
0
 

Author Comment

by:silva_jp
ID: 2713204
Adjusted points from 100 to 120
0
 

Author Comment

by:silva_jp
ID: 2713205
Thank you, wlaarhov.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question