DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

eels_log_restore(1Meels)


eels_log_restore -- restore an EELS archive to a temporary database

Synopsis

eels_log_restore -a archive_name [-d database] [-s] -t table

Description

Use eels_log_restore to restore an EELS archive to a temporary database. The temporary database can then be used for report generation purposes using such tools as eels_log_report(1Meels). The temporary database can be deleted using the eels_db_admin(1Meels).

eels_log_restore is a perl script that uses eels_log_import(1Meels) to do most of its work. The first line of the archive contains a list of the fields as they appear in each record of the archive. This information is passed to eels_log_import using the -o option. The rest of the data in the archive is piped through the uncompress(1) command before it is passed to eels_log_import for writing to the specified database name.


NOTE: Any database name specified in database must have already been created using eels_db_admin(1Meels).

Options


-a archive_name
The name of the archive file (excluding the trailing ``.Z'' extension).

-d database
The name of the database to restore the records to. The default is ``defaultdb''.

-s
Run this command in silent mode, that is, do not output any status messages to the screen.

-t table
The name of the database table to restore the data to.

Examples

eels_log_restore -a /backup/eels_archive_03161998 -d reportdb \
-t report_table

The above example restores an archive named /backup/eels_archive_03161998 to a database called ``reportdb'' in a table called ``report_table''.

References

eels_config(4eels), eels_db_admin(1Meels), eels_log_import(1Meels), eels_log_report(1Meels), uncompress(1)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004