?
Solved

Using NTBACKUP command in a batch program

Posted on 2000-04-02
6
Medium Priority
?
215 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
  • 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 480 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
MS Outlook undoubtedly is the most widely used email client.Its user-friendliness, cost effectiveness, and availability with Microsoft Office Suite make it the most popular email application.  Its compatibility with Microsoft applications like Exch…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

864 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