ubcp
is a command-line tool for copying Unibase tables (both the .dat
and .key
files).
It has two main modes of operation:
- Copying a single table to a new table name: This overwrites the content of an existing target table while preserving its permissions (mode, owner, group). The source and target table names cannot be the same.
- Copying multiple tables to a target directory: This creates new
.dat
and.key
files for each source table within the specified directory, inheriting the file mode but setting the owner and group to the user running the command.
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.
Where the target is an existing table, the contents of both 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 to 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 to 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