Solved

Using NTBACKUP command in a batch program

Posted on 2000-04-02
6
201 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 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
Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

 

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

Independent Software Vendors: 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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

680 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