ubcp

NAME

ubcp – copy one UNIBASE table to another or copy multiple tables to another directory

SYNOPSIS

ubcp table tabrget

ubcp table1 [table2…] <target directory>

DESCRIPTION

ubcp copies UNIBASE table (“.dat” & “.key”files) to a target name, table1 and target can not be the same.

If target is an existing table, the contents of both of its “.dat” and “.key” files are going to be overwritten, but the mode, owner and group are not changed. If target is a link to a file, every file of the link is automatically changed.

If you want a copy more than one table, then target has to be a directory. For each table which is new in the target directory, a “.dat” and “.key” file, with the same file mode, is created in the target directory. The owner and group are those of the user making the copy. Neither table name need exist in the Data Dictionary. At the end of the ubcp operation you will have two UNIBASE tables.

<P> <h2>EXAMPLE</h2> To copy the “.dat” and “.key” of the table “stock” to the table “oldstock”: <P><PRE>ubcp stock oldstock</PRE> <P> To copy the “.dat” and “.key” of tables “stock” and “oldstock” to directory “newdir”: <P><PRE>ubcp stock oldstock newdir</PRE>

FLAGS

FLAG ARGUMENT TYPE DESCRIPTION

ERRORS

EXAMPLE

ubcp staff staff1

ubcp staff areas tmp

SEE ALSO