OSDBIMPORT(1) — OBJECTSTORE COMMANDS
NAME
osdbimport − Restore databases and directories from image created by osdbexport
SYNOPSIS
osdbimport[ -vhpuU ][ -b blocksize ][ -H host_name ] [ -f DumpPath ] RootPath [ extract1...]
osdbimport -t [ -v ][ -b blocksize ][ -f DumpPath ][ extract1...]
DESCRIPTION
osdbimport restores databases and directories from an image created by osdbexport. It may also be used to print the Table of Contents of a dump image. By default, it reads standard input.
When restoring, the user must specify a root path that is prepended to the pathnames in the dump image. "/" restores things where they originally came from.
-t requests a Table of Contents.
-f causes it to read from a specific file.
-v, when restoring, causes each item restored to be printed on standard output. -t causes it to request more verbose information.
-u implies -v, and prints database IDs as well.
-b blocksize specifies an output blocking factor of 512-byte blocks.
-p restores the owner, group, and modes stored in the dump image. By default, items are restored with the user as the owner, the user’s group id as the group, and the modes from the umask.
-h restores onto the host specified in the dump image. By default, the database in the dump image is ignored, and databases are restored onto the default Server host.
-H forces all databases to be restored onto the specified host.
-U restores databases with the database IDs specified on the dump image. The default is to create new database IDs.
For example:
osdbimport -f /dev/rst0 /tmp
Note that when you use osdbimport on a database image written by osdbexport using the form dirman-name::/dir1/dir2, it contacts the named Directory Manager. However, if you specify a "root directory" to osdbimport in the form dirman::/dir (as opposed to /dir), the root directory dirman:: overrides the one specified on the exported pathname.
osdbimport can perform wildcard processing similar to shell wild cards (∗, ?, {}, and []). You must quote the wildcard with quotation marks ("") or a backslash (\) to keep the shell from misinterpreting the asterisk as a shell wildcard.
FILES
$OS_ROOTDIR/bin/osdbimport
SEE ALSO
ObjectStore 2.0 — Last change: October 1992