csdb [-q|-v] [-t caldb|sessdb|statdb] create|delete [dbdir] csdb [-q|-v] [-t caldb|sessdb|statdb] list [dbdir] csdb [-q|-v] [-f] [-t caldb|sessdb|statdb] recover [dbdir] csdb check [dbdir] csdb rebuild [-a, -V] [-g] [dbdir [dstdir]] |
The following table describes the commands available for the csdb utility.
Table D–11 csdb Utility Commands
Command |
Description |
---|---|
create [dbdir] |
Creates the databases in the specified database directory. If a database directory is not specified, the current directory is used. If a database does not exist when the server is started, Calendar Server creates one automatically. |
delete [dbdir] |
Deletes the databases in the specified database directory. If a database directory is not specified, the current directory is used. A database cannot be deleted while it is open (when Calendar Server is running). |
list [dbdir] |
Lists information about the databases in the specified database directory. If a database directory is not specified, the current directory is used. |
recover [dbdir] |
Attempts to recover damaged calendar databases in the specified database directory. If a database directory is not specified, the current directory is used. Is not implemented for session or statistics databases. |
check [dbdir] |
Scans a calendar database in the specified database directory to determine if any corruption has occurred and reports the results in its output. If a database directory is not specified, the current directory is used. |
rebuild [dbdir [dstdir]] |
Scans all calendar databases in the specified database directory to determine if any corruption has occurred and generates a rebuilt calendar database (.db files). If a database directory is not specified, the current directory is used. After the databases are rebuilt, db_verify runs. The dstdir specifies an optional destination directory. |
version |
Displays the version of the utility. |
The following table describes the csdb utility command options.
Table D–12 csdb Utility Command Options