DMK User Guide
Last updated
Last updated
The DMK (database management kit) offers to database administrators’ an efficient way to manage databases. It’s a platform independent and standardized collection of scripts for Linux/Unix.
The software is composed of an archive for Linux/Unix systems. No differentiation is made between for the 32bit and 64bit architectures.
In case you encounter a bug, we strongly recommend enabling the DEBUG mode before to raise a bug.
Enable debug as follows:
In case you have questions, want to raise a request, bug or any for any other purpose contact the Support Team at the following mail address:
DMK set the environment using ${DMK_HOME}/etc/dmk.conf
in 3 steps:
All these steps match to a section from the ${DMK_HOME}/etc/dmk.conf
file. Which are defined by brackets [...]
, example follows:
DMK interacts with other dbi services toolkits (DMK_DBBACKUP, ....), this interaction feature is available for customers on Linux/Unix platforms. Details of the feature:
Directories located under ${MONGODB_BASE}/local
Creates an alias and a variable with the name of the directory in Uppercase. The system variable ${PATH}
is extended with the ?bin
directory
This chapter presents the “standard” configuration of DMK. However, the flexibility of the tool permits customizations and extensions.
The following paragraphs explain how to create your own aliases and variables.
Aliases are declared using the following syntax
[var|novar]
var
: : creates automatically a variable with the name of the alias
novar
: doesn’t create the above variable
`[force|noforce]``
force
: if a command or an alias already exists it’s overwritten
noforce
: a warning is printed instead of overwriting the existing alias or command
Example of a warning printout
Variable are declared using the following syntax
[=|+|-]
=
: equal operator
+
: expand and existing variablé
-
: contract, remove element from a variable
[begin|end|noption|warn|nowarn]
begin|end
: works like the operators +|-
noopton|warn
: default behave print warning in case thevariable exist
nowarn
: disable warning and overwrites the variable
Example of a warning printout