Command line interface

DatAdmin has command line interface called DACI. It is used internally when running scheduled jobs, also it can be used by user to do various database tasks (export, backup, copy, syncrhonize database, running saved jobs, generating SQL from databse objects, running SQL against databse)

help command

DACI has inbuilt help command reflecting actual commands and its parameters. While help, which you now read, tries to be a bit informal and ilustrative, DACI help command writes exact information, which is really used.
Run "daci" without parameters to list commands, "daci help <command>" to get help about one command.

Specifying connection in commandline

Connection is specified using these parameters:

exportdb command

Export databse into DBK or DDF file (data archive or database structure). Accepts parameter outfile.

Examples

gensql command

Generates SQL from any database object. Accept connection parameters, template specification (what should be dumped) and object name. If not specified outfile parameter, SQL is dumped to standard output.

Parameters

Examples

copydb command

Copies database from one place to other. Source connection parameters are prefixed with "src.", destination with "dst,". Structure and data are copied. Each database can have different database engine.

Examples