Infos, sample scripts, ... taken from emails, for GTAK <= 2.12.
		UNTESTED, USE AT YOUR OWN RISK.

-----------------------------------------------------------------------------

Empfaenger : /comp/os/os2/apps
Absender   : hajo@quijote.in-berlin.de  (Hans-Joachim Zierke)
Antwort an : steuer@clam.rutgers.edu
Betreff    : Example 1: FD 1660 ER, Wangtek 6200 HS
Datum      : Di 02.11.93, 12:00
Groesse    : 4233 Bytes
----------------------------------------------------------------------
## Ersteller: steuer@clam.rutgers.edu


I presently have a Future Domain 1660ER SCSI card with the following setup:
Jumper JP1(W1 on the circuit board)  JP2(W2)     JP4(W4)
1:SHORTED                            1:N/A       SHORTED
2:SHORTED                            2:N/A
3:OPEN                               3:N/A
4:OPEN                               4:SHORTED
5:OPEN                               5:SHORTED
6:SHORTED
7:OPEN

Jumper JP1 sets the IRQ of the SCSI card, in my setup, it is set to 11;
                    I/O address, in my setup, it is 0140h-014Fh;
                    BIOS address, in my setup, it is CA000-C8FFF.
Jumper JP2 sets the PRI FD enable, SEC FD enable,
                    HD enable, BIOS enable, BIOS and RAM enable,  in that
                    order.
Jumper JP4 controls the termination power on the scsi card, in this case,
                    termination power is enabled on the scsi card.

Also, terminating resistors are installed in RP1 and RP3 of the SCSI card.
Additional info, my Future Domain BIOS is v2.0

This card was happily controlling just my Toshiba 3401B internal CD-ROM
which is set to SCSI ID 4.  Then I got my Wangtek 6200HS tape backup as
per the OS/2 FAQ.  BTW, Tim Sipples has a misprint, the Wangtek 6200HS
4mm DAT drive capable of 2Gb of storage costs $550, NOT $650.

I set the SCSI ID to 5 and hooked it up
to the existing SCSI cable.  Diagram follows:

-----------
FD 1660   |[]===========[]===============[]
SCSI card |              |_Tape Backup    |_Toshiba 3401B CD-ROM
-----------
*note, all items are internal inside the computer, ie no ext SCSI devices.


Now, with GTAK212B, I can use the tape pgm to rewind a tape,
retension, etc, but when I try to use TAR, ex tar -t to list files on a tape,
it crashes OS/2 completly!  

Here is my config.sys:

<...shortened...>

BASEDEV=OS2ASPI.DMD
DEVICE=D:\OS2\GTAK\ASPITAPE.SYS TAPE$5 0 5 S1
set TAPE=+++TAPE$5


and here is a script I wrote to backup my e: partition which only has os/2 
on it.
------------------------ cut here ------------------------
erase tape.dir
tape rewind
tape rewind mark
tar -c -p -v -D e:/tape.dir e:/
------------------------ cut here ------------------------
I called the above autotar.cmd

I also made an icon for it, and it is UUENCODED, so here it is all ready 
for you to UUDECODE:

QUUNCD Ver. 1.2, by Theodore A. Kaldis.
BEGIN--cut here--CUT HERE--
begin 600 tape.ico
M0TD:````$``0`&H````,````(`!```$``0````#___]#21H````0`!``:@$`
M``P````@`"```0`$`(````````"``("`````@(``@`"`@("`@,S,S/\```#_
M`/__````__\`_P#______P``````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````_________?___________________________P``````````
M``````````````````````"`!```2`(``````````0``````````````````
M``````````````````````````````#_____________________________
M__\1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1'Q$1$1$1$1$1$1$1$1$1$1
M$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1
M$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1
M$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1
M$9F9F3,S,S.9F3,1$1$1$1.9=YDS,S,YEWF3,1$1$1$YEQ=YDS,S.7%WDS,1
M$1$1.9=Q>1,S,SEW%Y,S$1$1$1.9=YDS,S,YEWF3,1$1$1$1F9F9,S,S,YF1
MF1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1
M$1$1$1$1$1$1X1$1$>$1X1$1X1[A$1$1$>$1$1'A$>$1$>'A$1$1$1'A$1$1
M[N[A$1'N[A$1$1$1X1$1$>$1X1$1X1'A$1$1[N[A$1$>[A$1$>[N$1$1$1$1
M$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1
M$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1
3$1$1$1$1$1$1$1$1$1$1$1$1$1>=
`
end
END--cut here--CUT HERE--

-------------------------------------------------------------------------------
| Robert M. Steuer               Amateur Radio: KF2EK@N3FOA.#EPA.PA.USA.NA    |
| Rutgers University             Internet: steuer@clam.rutgers.edu            |
| VHF Repeater System            Cherry Hill, NJ - KF2EK Repeater 145.370MHz  |
| DOS? WINDOWS? NT!? You're kidding right?   OS/2 2.1 - Why settle for less?  |
-------------------------------------------------------------------------------
Empfaenger : /comp/os/os2/apps
Absender   : hajo@quijote.in-berlin.de  (Hans-Joachim Zierke)
Antwort an : zollner@iastate.edu
Betreff    : Example 2: T130B, Teac 120 MB
Datum      : Di 02.11.93, 12:00
Groesse    : 1980 Bytes
----------------------------------------------------------------------
## Ersteller: zollner@iastate.edu

I have a Trantor T130B SCSI adapter (for an AT bus), AMI BIOS, 486DX50,
and a TEAC 120 MB tape drive. Works like a charm, if you have the most
recent Trantor ADD drivers (July 28 1993 or later).

No batch files, just command line:
   tar cpv .
from the root of the drive.

REM ********************************************************************
REM      CONFIG.SYS for zollner.ssp.ameslab.gov
REM ********************************************************************

<...shortened...>


REM ****************************************************************
REM                     SCSI and TAPE stuff
REM ****************************************************************
REM BASEDEV=T13BSCSI.ADD /I11
REM You may want to add the switch /T to the T13BSCSI.ADD driver for CD ROMS.
REM This will make them look like IBM drives (no audio).
REM The undocument switch /In switches the interrupt level to n.
REM IFS=C:\OS2\CDFS.IFS /Q
REM DEVICE=CDROM.SYS /Q /N:4
SET TAPE=+++TAPE$4
REM +++++++++++++ first try +++++++++++++++++++++++++++++++++++
BASEDEV=SCSITAPE.DMD TAPE$4 4 S0
REM ++++++++++++++ second try +++++++++++++++++++++++++++++++++
REM DEVICE=E:\OS2U\SCSI\ASPITAPE.SYS TAPE$4 4 S0
REM BASEDEV=OS2ASPI.DMD
REM +++++++++++++++ third try +++++++++++++++++++++++++++++++++
REM DEVICE=E:\OS2U\SCSI\SCSITAPE.SYS TAPE$4 4 S0
REM BASEDEV=OS2SCSI.DMD
REM This does not even work with TAPE INQ
REM +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


--
************************************************************************
* Dr. Stefan Zollner, Assistant Professor and Associate Physicist      *
* Iowa State University/Ames Laboratory, A205 Physics, Ames, IA 50011  *
* zollner@ameslab.gov    Phone: (515) 294-7327     FAX: (515) 294-0689 *
* Duplicate messages possible due to my IBM OS/2 mailer. My apologies !*
************************************************************************


Empfaenger : /comp/os/os2/apps
Absender   : hajo@quijote.in-berlin.de  (Hans-Joachim Zierke)
Antwort an : CCANDRE1@VAXC.STEVENS-TECH.EDU
Betreff    : Example 3: AHA 1522, Wangdat 6200
Datum      : Di 02.11.93, 12:00
Groesse    : 709 Bytes
----------------------------------------------------------------------
## Ersteller: CCANDRE1@VAXC.STEVENS-TECH.EDU

I use a WangDat 6200 with the adapttec AHA1522 that is built into a Zeos
motherboard. I use the following lines in Config.sys
BASEDEV=AHA152X.ADD /V
BASEDEV=SCSITAPE.DMD TAPE$6 6 S2
SET TAPE=+++TAPE$6

My drive is SCSI ID 6. 
To test, I backed up my drive, and restored a few directories to different
partitions. This isn't very good, I know, but I have faith.

I got this setup from the apps newsgroup. AHA152x came with OS/2,
SCSITAPE.DMD came with GTAK

I'm an thinking about writing a GUI for GTAK.  If you, or the author, since you
seem to be in contact with him, have any comments or usefull suggestions, I'd
like to hear them.;
-Chris

Empfaenger : /comp/os/os2/apps
Absender   : hajo@quijote.in-berlin.de  (Hans-Joachim Zierke)
Antwort an : Jedi@ftracks.jn.tsoft.net
Betreff    : Example 4: AHA 1542B, Archive Viper 2150S, 4OS2 only
Datum      : Di 02.11.93, 12:00
Groesse    : 1254 Bytes
----------------------------------------------------------------------
## Ersteller: Jedi@ftracks.jn.tsoft.net

The following is my batch file to execute GTAR.

Please note that it is for use with 4DOS/4OS2 only.  It will automatically
execute the correct GTAR for the operation shell.  

I always keep a log file for easy retrieval which you see below.  -R -v is 
just to make it as verbose as possible.  The %& is the commandline parameters 
passed to gtar, so it can be a certain file, a directory, or even a while 
drive, like c:/

If you have any info on installing an OS/2 v2.1 SCSI Tape driver, please let 
me know.  the aspitape.sys in the gtak212b.zip won't install when I boot os/2 
("Cannot attach SCSIMGR$" or something similar).  I have an adaptec 1542b with
an archive viper 2150S, 250M scsi tape backup.  Any info is appreciated.  
Thanks.

---------------------------------- (cut here) -------------------------------
@Echo off
if %1. == . goto help

if %_DOS. == DOS. gtar -R -v -F f:/tape/gtar/logs/master.log %&
if %_DOS. == OS2. gtarp -R -n -v -p -F f:/tape/gtar/logs/master.log %&
goto end

:help
text

  g.btm [option] [filespec]

        -x = extract
        -c = create

endtext

:end
---------------------------------- (cut here) -------------------------------
Empfaenger : /comp/os/os2/apps
Absender   : hajo@quijote.in-berlin.de  (Hans-Joachim Zierke)
Antwort an : me90plb@brunel.ac.uk
Betreff    : Example 5: AHA 1542B, TEAC MT-2ST
Datum      : Di 02.11.93, 12:00
Groesse    : 5568 Bytes
----------------------------------------------------------------------
## Ersteller: me90plb@brunel.ac.uk

Here goes !

1) Hardware and drivers

Tapedrive: TEAC MT-2ST / 45S2-27 Rev.M on SCSI ID:6

Media: 60MB streamer cassette (CS-600)

Controller: Adaptec 1542B (also controls HD and MO drive)

Drivers: AHA154X.ADD from OS/2 2.1GA
         SCSITAPE.DMD from GTAK 2.12
         both in c:\os2

CONFIG.SYS: 
Relevant lines are
	SET TAPE=+++TAPE$6
	SET TAPEMODE=0
	BASEDEV=AHA154X.ADD /V /A:0 /!DM:4        <- MO drive is on ID:4
	BASEDEV=SCSITAPE.DMD TAPE$6 A0 6 S0
	BASEDEV=OS2DASD.DMD
	BASEDEV=OS2SCSI.DMD


2) Backup strategy

It's a stand-alone PC used only by myself, so I do a full backup every
month or so, and an incremental backup every few weeks (more often if
I'm doing a lot of work). I don't rotate tapes - I have 3 for the full
run and 1 for the incremental.


3) Example files

Now for the long bit ! I don't like command lines, so I've managed to set
up GTAK so it's easy to use from the desktop. Heres how...

1- Create a new 'Tape Drive' object from the data file template. Give it
   a nice icon, and put it next to the other Drive icons.

2- Add the following menu items:
	Control      <- sub menu
	Full Backup  (BACKALL.CMD)
	Incremental Backup  (BACKINC.CMD)
   Add the following to the Control sub-menu:
	Rewind  (REWIND.CMD)
	Erase  (ERASE.CMD)
	Directory  (TAPEDIR.CMD)

   This gives a Tape object menu like this:

	|			|
	| ---------------------	| --------------
	| Control	     ->	|| Rewind	|
	| Full Backup		|| Erase	|
	| Incremental Backup	|| Directory	|
	 -----------------------  --------------
        -----
       |o - o|
        -----
      Tape Drive

3- Now for the programs...

REWIND.CMD - a simple one this.

	@tape st rewind

The 'st' command stops the rewind failing if the tape has been changed.

ERASE.CMD - a bit more involved. I used VREXX to make the program friendly.

	/* Erase tape for VREXX */
	call RxFuncAdd 'VInit', 'VREXX', 'VINIT'

	initcode = VInit()
	if initcode = 'ERROR' then signal CLEANUP
	signal on failure name CLEANUP
	signal on halt name CLEANUP
	signal on syntax name CLEANUP

	msg.0 = 3
	msg.1 = 'Erase tape'
	msg.2 = ''
	msg.3 = 'Are you sure ?'

	call VDialogPos 50, 50
	rb = VMsgBox('Tape Control', msg, 6)
	if rb = 'YES' then do
   		tape st erase
   	if rc = 0 then do
     		msg.0 = 1
     		msg.1 = 'Tape erased'
     		call VMsgBox 'Tape Control', msg, 1
   		end
   	else do
     		msg.0 = 3
     		msg.1 = 'Tape error'
     		msg.2 = ''
     		msg.3 = 'Check tape drive'
     		call VMsgBox 'Tape Control', msg, 1
   		end
	end

	CLEANUP:
   		call VExit

	exit

Set the program's settings so it starts up minimised. It pops up a PM 
dialog box asking for confimation that you want to erase the tape. It
then pops up another box when the erase is completed.

TAPEDIR.CMD - This just lists the contents on the tape

	tape st
	tar tv

Again, tape st is necessary to reset the tape drive.

BACKALL.CMD - Full backup command file.

	/* Backup command file */

	now = date() time()
	logfile = 'c:/backup.log'
	excludefile = 'c:/backup.exclude'
	dirfile = 'c:/backup.dir'
	tape.exe status rewind
	tar.exe '-c --reset-archive -p -E -M -V "Full dump of C: on 'now'" -X 'excludefile' -g 'dirfile' -G first c:/'
	if rc = 0 then
 		call lineout logfile,'Full dump performed successfully on 'now
	if rc = 1 then
 		call lineout logfile,'Full dump performed on 'now', check for errors'
	if rc > 1 then
 		call lineout logfile,'Full dump failed on 'now' !!'
	call lineout logfile
	tape.exe rewind
	exit

This backs up all files on drive C: except those listed in c:\backup.exclude.
It allows for multiple volumes as I only have 60MB tapes. A report file is
generated which logs backups, and notifies any errors. Unfortunately, I don't
know what tar's return codes are, so the error reporting is a bit over zealous.

BACKINC.CMD - very similar to the above. I use this whenever I've done a lot
of work or made changes to my PC.

	/* Backup command file */

	now = date() time()
	logfile = 'c:/backup.log'
	excludefile = 'c:/backup.exclude'
	dirfile = 'c:/backup.dir'
	tape.exe status rewind
	tar.exe '-c -p -v -V "Incremental backup of C: on 'now'" -X 'excludefile' -g 'dirfile' -G second c:/'
	if rc = 0 then
 		call lineout logfile,'Incremental backup performed successfully on 'now
	if rc = 1 then
 		call lineout logfile,'Incremental backup performed on 'now', check for errors'
	if rc > 1 then
 		call lineout logfile,'Incremental backup failed on 'now' !!'
	call lineout logfile
	tape.exe rewind
	exit

Both backup programs work well and multitask nicely. By setting up GTAK as
above, it makes for a system that is really easy to use, and almost as good
as a native PM app (well, maybe not, but it's far easier than a command line !)
There are some problems though:

1- Files which span volumes are always corrupted and can't be restored.

2- The tape doesn't stream - it stops & starts. I still get about 4MB/min
   though (on a 386DX40), and I don't mind the slow performance as it runs
   fine in the background.

3- The backup.log file reports errors even when there aren't any. I need
   to get a list of tar's return codes to sort this out.


4) Bootdisk

I used BOOT21.ZIP to create a 2 disk boot set. This leaves plenty of room to
copy the GTAK programs over.

5) Test

I booted using the above disks and restored one directory. Seemd to work OK.



Cheers,
	Paul.
Empfaenger : /comp/os/os2/apps
Absender   : hajo@quijote.in-berlin.de  (Hans-Joachim Zierke)
Antwort an : karmat@utu.fi
Betreff    : Example 6: AHA-1542B, Archive Viper 2150S
Datum      : Di 02.11.93, 12:00
Groesse    : 5544 Bytes
----------------------------------------------------------------------
## Ersteller: karmat@utu.fi

Here you are...

Hardware:
		Archive Viper 2150S
		Adaptec AHA-1542B
		DC6150 & DC6250 tapes
Config.sys:
		basedev=aha154x.add /v /a:0 /bon:7	(/Verbose /Adaper:0..)
		set tape=+++tape$4			(Viper in SCSI-ID 4)
		basedev=scsitape.dmd tape$4 4 s1
Software:
		GTAK 2.12b
		EMX version of TAPE.EXE

I have a three level backup software. Highest level is the first one
below. I named it DC.CMD (DC for the names of tapes DC6x50). 
DC.CMD is used ONLY for backing up a tape-full of stuff. I always
make full backups just for the sake of simple restorations.

I have (only) six tapes for a 1000M hard drive.

DC.CMD tapes only one parameter, the name of the tape.

Second level of backup is TARVOL.CMD. It is used to restore
full volumes from tape, seek to start of desired volume (there is
usually more than one volume (C:, E: etc.) on a tape.

DC.CMD uses TARVOL.CMD when making the real backup.

Executing both DC.CMD and TARVOL.CMD without any parameters
show apropriate help.

The third level of software is of course TAR, BUFFER, TAPE, and
a GZIP.EXE renamed to COMPRESS.EXE.

All writes/reads to/from tape are done via BUFFER.EXE with the
maximum of 4M buffer.

Summa summarum, I backup always several full volumes to one tape
with the command 'DC <150a|150b|150c|250a|250b|250c>'.
Restoration is done manually with a proper combination of the
commands 'TARVOL <Nth_volume_on_loaded_tape>' and 
'TARVOL r <c|d|e|f|g|h> [-z|v|E]'.
(Above c..h is drive letter; -z,-v,-E are GTAK options.)

Oh yes... the BUFFER options:  -b10240  block all writes to 10K blocks.
This seems to be compatible with our University Sun 4!
-i35 and -o60 offer the best streaming (at least with my hardware!)

DC.CMD--------------------------------------------------
@echo off
SetLocal
echo.

if (%1) == ()  goto Help
goto %1
goto help


:150a
:150b
:150c
Tape Rewind Mark
Call TarVol b f
Call TarVol b c
Call TarVol b e
goto End


:250a
Tape Rewind Mark
Call TarVol b f
Call TarVol b c
Call TarVol b e
Call TarVol b h
Call TarVol b g -z
goto End


:250b
:250c
Tape Rewind Mark
Call TarVol b d -z
goto End


:Help
echo DC.cmd - Shell for TarVol, a shell for GNU TAR (GTAK)
echo Version 1.10 of 09-Oct-93
echo Copyright (c) 1993 Kari Mattsson
echo.
echo invalid option: [%1]
echo.
echo usage: dc ^<tape name^>
echo.
echo        C=DOS; D=Bin; E=Sys; F=User; G=eXtra; H=Inet    -z = Compressed
echo.
echo        Tapes names: 150a =  User + DOS + Sys
echo                     150b =  User + DOS + Sys
echo                     150c =  User + DOS + Sys
echo                     250a =  User + DOS + Sys + Inet + eXtra -z
echo                     250b =  Bin -z
echo                     250c =  Bin -z
echo.
Goto The_End

:End
Tape Tell Rewind Retension Rewind Unload
:The_End
EndLocal

TARVOL.CMD--------------------------------------------------
@echo off
setlocal
echo.

if (%1) == (t)  goto TestVol
if (%1) == (T)  goto TestVol
if (%1) == (r)  goto Restore
if (%1) == (R)  goto Restore
if (%1) == (b)  goto Backup
if (%1) == (B)  goto Backup
if (%1) == (1)  goto SeekVol
if (%1) == (2)  goto SeekVol
if (%1) == (3)  goto SeekVol
if (%1) == (4)  goto SeekVol
if (%1) == (5)  goto SeekVol
goto Help


:Backup
if (%2) == ()   goto Help
Tar -cppE %3 %2:/* -f -  | Buffer -b10240 -i35 -o60 -s4096 | Tape Write -
Tape Mark Mark
goto End


:Restore
if (%2) == ()   goto Help
%2:
Tape Read | Buffer -b10240 -i60 -o35 -s4096 | Tar %3 -xppf -
goto End


:TestVol
Tape Read | Buffer -b10240 -i60 -o35 -s4096 | Tar %2 %3 -tEppf -
goto End


:SeekVol
Rem  --------------------------------------------------------------
Rem    Actions below:
Rem       1 - Rewind tape, load it (at the beginnig) and seek
Rem           to start of the first volume on tape.
Rem       2 - Goto to the desired volume on tape.
Rem           There are 2 Filemarks between every volume on tape.
Rem  --------------------------------------------------------------
Tape Rewind Load File
if (%1) == (1)  Tape Tell
if (%1) == (2)  Tape File 2 Tell
if (%1) == (3)  Tape File 4 Tell
if (%1) == (4)  Tape File 6 Tell
if (%1) == (5)  Tape File 8 Tell
goto End


:Help
echo TARVOL.cmd - GNU TAR (GTAK) Shell for Tahko 3 backup/restore/test
echo Version 6.1 of 14-Oct-93
echo Copyright (c) 1992, 1993 Kari Mattsson
echo.
echo error in option(s): [%1] [%2] [%3]
echo.
echo usage: tarvol ^<b^|r^|t^|1^|2^|3^|4^|5^> ^<x^> ^<-option(s)^>
echo.
echo        b^|r  the real action: backup or restore
echo        1-5  seek to the beginnig of desired volume on tape; single option
echo        t    tests one volume's integrity on tape
echo        x    is volume drive letter (cdefgh); forget this in test mode
echo.
echo options (for GTAK):
echo        z    a compressed tape is to be processed
echo        k    keep existing old files on the hard drive
echo        v    make it all verbose; show every file as they are processed
echo        E    make it all semi-verbose; show directories only, not files
echo.

:End
endlocal

--------------------------------------------------

See ya,

Kari/2

P.S.  Feel free to put any fragments of DC.CMD and/or TARVOL.CMD
to any future GTAK docs!

-- 
Kari Mattsson          #  Inspehtorinkatu 3 D 12, FI-20540 Turku, Finland
karmat@utu.fi          #  Voice and Fax: +358-21-2542504 (auto-shared)
Kari.Mattsson@utu.fi   #  OS/2 Fax server up at all times.
Empfaenger : /comp/os/os2/apps
Absender   : hajo@quijote.in-berlin.de  (Hans-Joachim Zierke)
Betreff    : Example 7: AHA-1542C, Wangtek 5525ES
Stichworte : GTAK,Backup,Newuser
Datum      : Di 02.11.93, 12:00
Groesse    : 8570 Bytes
----------------------------------------------------------------------

> 1) Hardware and Drivers
 
 I use a Wangtek 5525ES with 525 MB Tapes (Data on HDs is about 250 MB.). 
It is connected to an Adaptec AHA-1542C. I use GTAK 2.12b and this driver 
setup in CONFIG.SYS:

BASEDEV=AHA154X.ADD 
set TAPE=+++TAPE$4
BASEDEV=SCSITAPE.DMD TAPE$4 4 S1

> 2) Backup-Strategy 

I insert "TAPE 1", click on icon "TAPE1", everything's automatic
then. The next week or two weeks later I insert "TAPE 2", click on
Icon "Tape 2",...

My Backup strategy should do the following: Do a complete backup of all
drives first, do a daily backup of new files in the directories that 
store my work, do a backup every time new mail arrives from the
mail-feed.

Aditionally, I might archive old fax messages to tape from time to time, 
and then delete these from the HD. I dedicated one tape for this.


> 3) Example Files (cmd-Batchfiles, REXX-scripts)

(Please note that I do not know about programming. I found it
easier to create a bunch of files with my fast editor and my editor
makros.)

On the desktop, I created a folder "Backup" and a folder
"Logfiles". After inserting "BAND 3", opening the folder "Backup"
and clicking the Icon "Band 3" will invoke "band3.cmd":
------------------------ cut here ------------------------
copy E:\bin\tar-dir\bak-all.3 E:\bin\bak-all.cmd
copy E:\bin\tar-dir\bak-tag.3 E:\bin\bak-tag.cmd
copy E:\bin\tar-dir\bakspool.3 E:\bin\bakspool.cmd
E:\WPO\ed E:\COMM\QUIJOTE\timing.1 /m-bak-ein
exit
------------------------ cut here ------------------------

The copy commands simply exchange the logfiles, tar-dirs, etc. in
the bak*.cmd files.
The last command solves a complicated problem: My Usenet site is a
database program. It will call and reorganize at night. If the
complete backup runs at the same time, backup data could be
inconsistent. So I use the internal timer _of_that_program_ to stop
it and do the backup at night. "/m-bak-ein" is a Editor makro
that changes the timinglist to call for "bak-all.cmd" - only the next
night after clicking the icon.

Then, "bak-all.cmd" does the following:
------------------------ cut here ------------------------
del D:\LOG\band3.log 
@echo ######################### >> D:\LOG\band3.log 
@dates echo `6###, `5##.`3##.`1####, `A##:`B##:`C## >> D:\LOG\band3.log
@echo Komplettes Backup >> D:\LOG\band3.log 
@echo ######################### >> D:\LOG\band3.log 
tape stat 
tape blocksize 512
tape rew
tape erase
tape stat >> D:\LOG\band3.log 2>&1
del E:\BIN\tar-dir\band3.dir
tar -cp -P --totals --reset-archive -D E:\BIN\tar-dir\band3.dir d:/* >> D:\LOG\band3.log 2>&1
tar --compare -p -P -D E:\BIN\tar-dir\band3.dir d:/* >> D:\LOG\band3.log 2>&1
tape tell >> D:\LOG\band3.log 2>&1
tar -cp --totals -P --reset-archive -D E:\BIN\tar-dir\band3.dir e:/* >> D:\LOG\band3.log 2>&1
tar --compare -p -P -D E:\BIN\tar-dir\band3.dir e:/* >> D:\LOG\band3.log 2>&1
tape tell >> D:\LOG\band3.log 2>&1
tar -cp -P --totals --reset-archive -D E:\BIN\tar-dir\band3.dir c:/* >> D:\LOG\band3.log 2>&1
tar --compare -p -P -D E:\BIN\tar-dir\band3.dir c:/* >> D:\LOG\band3.log 2>&1
exit
------------------------ cut here ------------------------

First it deletes the old logfile.
Then it opens a new logfile and writes a stamp like this:
#########################  
Tue, 02.11.1993, 04:33:58
Komplettes Backup  
#########################  
I got the small util "dates" from ftp-os2.cdrom.com

The first "tape stat" is a dummy command that will only return 
"unit attention".
"tape blocksize 512" keeps my drive from doing nonsense. I do not
know why.
Then it will erase the tape and the tape directory.

-D E:\BIN\tar-dir\band3.dir will write a file that is used for
quick file access (for restoring single files).
"--totals" "d:/* >> D:\LOG\band3.log 2>&1" will make it write the
amount of data into the logfile.

The "-P" option is for absolute filenames. This means I can restore
only to the same point. I would prefer not to use it, but without
it, I got nonsense results for "compare". There is no verify
option, so I have to use compare, wether I like it or not.

The drive D: is done first. This is my OS/2 boot drive. For easy
after-crash restore from disk-boot, I like to access this easily.

The resulting Logfile can be viewed next day by opening the
"Logfiles" folder on the WPS and clicking the BAND3.LOG icon.


The everyday backup is invoked by a calendar program at night. This
is BAK-TAG.CMD:
------------------------ cut here ------------------------
@echo ######################### >> D:\LOG\band3.log 
@dates /C echo `6###, `5##.`3##.`1####, `A##:`B##:`C## >> D:\LOG\band3.log 
@echo Taegliches Backup neuer Texte >> D:\LOG\band3.log 
@echo ######################### >> D:\LOG\band3.log 
tape stat
tape stat >> D:\LOG\band3.log 2>&1
tape end
tape tell >> D:\LOG\band3.log 2>&1
tar -cp -P --totals --archive -D E:\BIN\tar-dir\band3.dir e:/text/* >> D:\LOG\band3.log 2>&1
tar --compare -p -P -D E:\BIN\tar-dir\band3.dir e:/text/* >> D:\LOG\band3.log 2>&1
exit
------------------------ cut here ------------------------

The "tape tell" writes the exakt position of the backup beginning
to the logfile. The logfile is on a different physical drive than
the data that has to be restored.


BAKSPOOL.CMD is automatically detached by "quijote", my Usenet site, after 
every call to the University. Unlike Unix, my "SPOOL" directory is a
temporary directory, holding the files that were just coming in.
This is BAKSPOOL.CMD:
------------------------ cut here ------------------------
@echo ######################### >> D:\LOG\band3.log 
@dates echo `6###, `5##.`3##.`1####, `A##:`B##:`C## >> D:\LOG\band3.log 
@echo Netcall-Backup >> D:\LOG\band3.log 
@echo ######################### >> D:\LOG\band3.log 
tape stat >> D:\LOG\band3.log 2>&1
tape end
tape tell >> D:\LOG\band3.log 2>&1
tar -cp --totals -D E:\BIN\tar-dir\band3.dir e:/comm/quijote/spool/* >> D:\LOG\band3.log 2>&1
exit
------------------------ cut here ------------------------


For my dedicated fax-archive tape I use:

------------------------ cut here ------------------------
@echo ######################### >> D:\LOG\bandfax1.log 
@dates /C echo `6###, `5##.`3##.`1####, `A##:`B##:`C## >> D:\LOG\bandfax1.log 
@echo Archivierung von Faxnachrichten >> D:\LOG\bandfax1.log 
@echo ######################### >> D:\LOG\bandfax1.log 
tape stat
tape blocksize 512
tape stat >> D:\LOG\bandfax1.log 2>&1
tape end
tape tell >> D:\LOG\bandfax1.log 2>&1
tar -cp -P --totals -D E:\BIN\tar-dir\bandfax1.dir e:/faxworks/fx*.fax >> D:\LOG\bandfax1.log 2>&1
tape rew
tar --compare -p -P e:/faxworks/fx*.fax >> D:\LOG\bandfax1.log 2>&1
exit
------------------------ cut here ------------------------

I had to out-"rem" the "tape end" command for doing the first archive,
because GTAK or the drive were making nonsense otherwise. I was not able to
use the tape directory for compare. Again, I would prefer "verify".

I would have liked to use compressed mode (-Z parameter) for this, but I 
got "broken pipe" after archiving, and I/O errors for restore, so I
better forget this.


> 4) Bootdisk

I have only one 1,44 MB drive. The BOOT2X util from software.watson.ibm.com 
cannot create a bootdisk with GTAK for me without a 2 drives option. So I 
did the following: 

1) I used BOOT2X to create a simple bootdisk without tapedriver etc. pp.

2) I copied the first two OS/2 install disks with EMT4PM. 

3) I deleted files from the first disks that did not look useful. I 
deleted all files from the second disk with the exception of a number 
file etc.

4) I copied everything from the disk created by BOOT2X disk to the second 
disk, with the exception of the OS2KERNL.

5) Since the kernel is loaded by the first disk, there is enough
space for all needed drivers and GTAR. I added these and edited the
CONFIG.SYS.

There is an error message that I do not understand, but it works. I
can boot from disk, and I can access the tape drive for restore. I
printed the GTAK dok on paper for bootdisk restore.

> 5) Test

I tried restoring single files with QFA. This works. I tried to
write back the first set of the fax archive files. This works. I
did not test the daily backup yet.




Looking back at the time spent for setting up GTAK, a commercial
program would have been cheaper. But there is none, and now it's
usable.


Ciao
Hajo

-- 
----[Hans-Joachim Zierke]----------------------[hajo@quijote.in-berlin.de]----

