vitalnix user management suite 3.2.0


Name

vxdbdump -- a database dump program

Syntax

vxdbdump [--vxdb database] [-t {ldif|mysql|shadow}] [-u from:to] [-w {passwd,shadow,vxshadow,group}[,...]]

Description

vxdbdump dumps all users and groups from the VXDB. Although designed for debugging purposes, this utility can be used as a real dump utility with which the original database content (see below) can be restored. You can also use it to convert between databases.

vxdbdump can output the data in a number of formats, but the output is dependent on the capabilities of vxdbdump, so having an XYZ back-end module does not imply vxdbdump can produce output XYZ-style.

Note that vxdbdump does only allow you to reconstruct the database's content, not the table structure. In case of e.g. a MySQL database, this means that the table names, column names, column order, indexed fields, etc. are not stored, but whatever is hardcoded is taken as name/option. But the content remains the same, so if you plan to restore it using vxdbdump output, you would [only] have to change (in our MySQL case) /etc/nss-mysql.conf*.

This "problem" with only retaining database content will not be fixated, as vxdbdump is not designed to be a restore helper. Use backup mechanisms provided by the database engine instead (mysqldump, slapcat, etc.)

Options

--vxdb database Uses the specified database rather than the default one defined in the VXDB configuration file.
-t format Output format of the dump. This may either be ldif, mysql or shadow. Defaults to shadow.
-u start:end Limit dump to the UID range from start to (inclusive) end. This does not limit groups when -w group is used.
-w list[,...] Parts of the VXDB to dump, separated by comma. Possible parts are passwd, shadow, vxshadow and group.