home *** CD-ROM | disk | FTP | other *** search
- The following is my version of a tape backup program for windows nt
-
- It was written because ntbackup fails on my gigatrend 1200 data drive, but
- the driver I wrote for it passes the hardware compat. test fine.
-
- The software allows you to backup/restore savesets to tape (50 savesets max).
- It also allows you to list the tape/and or saveset contents and backup/restore
- by wildcard ie *dirname* etc. I have implemented compression utilizing a
- modified version of gnu zip but on my dat even with a 100K threshold for
- zip it takes long and more tape so the compression by default is
- disabled unless you specify the -c option. for a list of options run lkbackup -h
-
- The tape drive used by the backup program must have an nt driver and
- support the following functions:
-
- 1. Writefile/readfile for reading writing to tape
-
- 2. it must be device tape0 (ie the first tape device in the system although
- this can be changed in the source code)
-
- 3. it must support either filemarks or setmarks (default is filemarks
- use -s option for setmarks).
-
- 4. it must support spacing to end of data and filemark/setmark +/-
- spacing
-
- 5. it must support scsi data block aka relative blocking/spacing (it
- doesn't use absolute or logical blocking).
-
- 6. it must support the load/unload/rewind tape apis in win32.
-
- 7. You must have your temp variable set since this is where the
- zipped/unzipped files are temporarily kept, and there must be enouge space for the
- largest of your files (and about 30 of them if using compression).
-
-
- The program is multi-threaded in that one thread tries to compress ahead of
- the thread writting to tape up to 30 files. This improved performance but
- uncompressed still works better on my drive. Try it and let me know your
- results. Anyway I have left the multi-threading in since with faster machines
- or multi-processor machines in the future it will improve perforamce.
-
- The source code is also provided and can be used and modified provided
- you send me the modified code with a note about what you are doing.
- Also the code cannot be used in a for sale produce without first contacting
- me for permission.
-
- Good luck
-
- Larry Kahn 10/27/93
- [71534.600] on compuserve
- Kahn@drcvax.af.mil on internet
- 919-630-0412 by phone
- 919-630-0722 by fax when nt finally gets fax support
-
-
- Addendums:
-
- Just got an HP 35480a dat and the program wouldn't work because and I
- quote:
-
- "After the load sequence, the drive sends a CHECK STATUS on receipt of
- the next SCSI command from the host. The UNIT ATTENTION key is set in
- the returned REQUEST SENSE data to indicate that the tape may have been
- changed."
-
- This is sort of weird in that it means that after a load/rewind command
- the HP dats return an error condition indicating ERROR_MEDIA_CHANGED so
- on every load of a tape the next command gets an error and this is why
- the program was not working. Now I check for this condition and ignore
- it. I print out this is happening if DEBUG is on. Sorry
-
- There are no also two executables one for 486 machines and one optimized
- for pentiums.
-
- larry
-