home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
- COPYDB(UNIX) 3/14/79 COPYDB(UNIX)
-
-
-
- NAME
- copydb - create batch files to copy out a data base and re-
- store it.
-
- SYNOPSIS
- _c_o_p_y_d_b [ -_u_n_a_m_e ] database full-path-name-of-directory [ re-
- lation ... ]
-
- DESCRIPTION
- _C_o_p_y_d_b creates two INGRES command files in the directory:
- _C_o_p_y._o_u_t, which contains Quel instuctions which will copy
- all relations owned by the user into files in the named
- directory, and _c_o_p_y._i_n, which contains instructions to copy
- the files into relations, create indexes and do modifies.
- The files will have the same names as the relations with the
- users INGRES id tacked on the end. (The directory MUST NOT
- be the same as the data base directory as the files have the
- same names as the relation files.) The -_u flag may be used
- to run _c_o_p_y_d_b with a different user id. (The fact that
- _c_o_p_y_d_b creates the copy files does not imply that the user
- can necessarily access the specified relation). If relation
- names are specified only those relations will be included in
- the copy files.
-
- _C_o_p_y_d_b is written in Equel and will access the database in
- the usual manner. It does not have to run as the INGRES
- user.
-
- EXAMPLE
- chdir /mnt/mydir
- copydb db /mnt/mydir/backup
- ingres db <backup/copy.out
- tp r1 backup
- rm -r backup
-
- tp x1
- ingres db <backup/copy.in
-
- DIAGNOSTICS
- _C_o_p_y_d_b will give self-explanatory diagnostics. If ``too
- many indexes'' is reported it means that more than ten
- indexes have been specified on one relation. The constant
- can be increased and the program recompiled. Other limits
- are set to the system limits.
-
- BUGS
- _C_o_p_y_d_b assumes that indexes which are ISAM do not need to be
- remodified. _C_o_p_y_d_b cannot tell if the relation was modified
- with a fillfactor or minpages specification. The _c_o_p_y._i_n
- file may be edited to reflect this.
-
-
-