
This is turning into a whole tool suite.  the code 
should really all move over to cvs/tcldb/apps/tools
or even cvs/tcldb/sybtools instead of sybdump.
whatever.

SYBDUMP

What is it:

	a no-frills nuts-n-bolts backup/restore tool for sybase
	servers.  backs up and restores DDL for tables, triggers,
	rules, databases, devices, stored procs, etc.;  extracts
	and reloads data from/into tables using bcp.

	deficiencies:  user defined datatypes, aliases, a few
	other advanced ASE features not yet supported because
	not used here (sorry!).

Requires:	Tcl, TclX, SybTcl  

Preferred versions:
		Tcl 		8.0.3
		TclX 		8.0.3
		SybTcl at least 2.5

	Can be made to work with lesser versions, but at your own risk.

Sybase versions:
		ASE 11 and compatible releases

To install:

	put the two tlib files someplace where the script can
	find them, and edit the sybdump script accordingly.

	edit the #! line to find the right interp (a Tcl interp
	with TclX and SybTcl).  alternately, run a TclX interp
	and uncomment the "package require" block of code in
	sybdump, if you're running Sybase and Tcl under Linux
	or some other environment where sybtcl is a loadable
	extension.

	put sybdump someplace where your intended users can
	find it

To use:

	sybdump ServerName DatabaseName ?sybuser? ?sybpassword?


Result:

	creates directory ./DatabaseName if it does not already
	exist.

	populates directory with files *.sql and *.csh

	source Extract.DatabaseName.csh to extract data into .dat
	files (TSV).

	source Reload.DatabaseName.csh to restore data from .dat
	files.

	source Automatic.csh if you want to reconstruct a destroyed
	database, or reproduce DatabaseName on a new or different
	server.  better read it first, though.  don't run it
	blind.  know what you are doing before you hit return :-)

Terms:	FREE

	please feel more than free, nay, *encouraged* to submit
	bugreports, patches, enhancements, and comments.

	de@ucolick.org


