GNU Tar for NT w/APSI tape extentions (see "NTRMT" below for rmt server) NTTAR ===== This is a port of the GNU-tar 1.11.8 for Windows-NT using the WIN32 tape API. Only nessesary modules are included in this package. It is based on the structure of the port of tar 1.10 with ASPI-support of "chris@alderan.sdata.de". I made a little change in tar.c to prevent removing the "/" of the entered pathname. The modules are tested with a HP-SureStore Tape 5000 and Windows-NT 4.0. The devicename of the tape is builded by default with "0" --> "\\.\tape0". Other names can be reached through an environment variable named TAPEID. e.g. TAPEID=1 makes "\\.\tape1". Enter tar --help to get full syntax-description of the tar-command. The filename "/dev/ct" specifies the cartridge-tape and "/dev/nrct" specifies the no-rewind-cartridge-tape (no rewind on close). tar -c c:/some/dir - creates the tar-file "tar.out" tar -cf archive.tar c:/some/dir - creates the tar-file "archive.tar" tar -cf /dev/ct c:/some/dir - creates a tar-file on tape and rewinds the tape on close. tar -cf /dev/nrct c:/some/dir - creates a tar-file on the tape and does *not* rewind the tape on close To append one tar-file to the end of another just use the "/dev/nrct" device. E.g: 1) tar -cf /dev/nrct c:/some/dir 2) tar -cf /dev/ct d:/some/other/dir Multi volume archives are supported by the tape-functions(). So, you may backup your whole disk in one GO to a multi volume tape archive. E.g.: tar -cvMf /dev/ct c:/ d:/ e:/ f:/ writes your c:, d:, e: and f: - drive to the tape archive. You might have noticed the use of "/" instead of "\" to separate dirnames in a pathname. So, don't use the backslash in pathnames, use the normal slash. If you have any suggestions or errors please feel free to send me an e-mail. Markus Barth - mbarth2193@aol.com barthm@csb.de history: 6/2/97 - Added support of -b parameter to define blocksize So the default blocksize is 20 * 512 and not 512 bytes NTRMT ===== I added an NT service which responds to UNIX tcp rexec "rmt" commands. This allows you to run dumps from your unix (& linux) boxes to your NT tape drives. I also added an "unix like" mt command - some of just can live without "mt rew" and "mt rewoffl"... The rmt server can run as a console application but is intended to run as a service (rmt -d). To install it as a service move the rmt.exe to the place you intended it to stay (c:/winnt/system32 is a fine place) and then run "rmt -i" to install and start it. You can uninstall it later with "rmt -u". The rmt service will show up in the "Services" control panel and will respond to start & stop requests. You should be able to remake from the sources using Visual C 4.2 with "nmake -f rmt.mak". (gnu make will work also). Brad Parker brad@parker.boston.ma.us 8/23/97