Solved

Using NTBACKUP command in a batch program

Posted on 2000-04-02
6
196 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:silva_jp
Comment Utility
TO: wlaarhov

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

Author Comment

by:silva_jp
Comment Utility
Adjusted points from 100 to 120
0
 

Author Comment

by:silva_jp
Comment Utility
Thank you, wlaarhov.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now