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
Solved

Using NTBACKUP command in a batch program

Posted on 2000-04-02
6
200 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
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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 …
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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.

856 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