{\ttfamily kdb mount \mbox{[}$<$path$>$ $<$mountpoint$>$\mbox{]} \mbox{[}$<$plugin$>$ \mbox{[}$<$config$>$\mbox{]} \mbox{[}..\mbox{]}\mbox{]}}


\begin{DoxyItemize}
\item Where {\ttfamily path} is the path to the file the user wants to mount. See {\ttfamily kdb info resolver} for details what an absolute and relative path means.
\item {\ttfamily mountpoint} is where in the key database the new backend should be mounted. (For a cascading mount pount, {\ttfamily mountpoint} should start with {\ttfamily /})
\item {\ttfamily plugin} should be an Elektra plugin. A list of such plugins with configuration can be given.
\item Plugins may be followed by a {\ttfamily ,} separated list of keys and their corresponding values which will be written below the backend configuration.
\end{DoxyItemize}

\subsection*{D\+E\+S\+C\+R\+I\+P\+T\+I\+O\+N}

This command allows a user to mount a new {\itshape backend}.

The idea of mounting is explained \hyperlink{md_doc_help_elektra-mounting_doc_help_elektra-mounting_md}{in elektra-\/mounting(7)}.

Mounting in Elektra allows the user to mount a file into the current key database like a user may mount a parition into the current filesystem by creating a {\itshape backend}. This functionality is key to Elektra as it allows users to build a global key database comprised of many different conifguration files. A backend acts as a worker to allow Elektra to interpret configuration files as keys in the central key database such that any edits to the keys are reflected in the file and vice versa. Additionally, the user can use this command to list the currently mounted backends by running the command with no arguments.

\subsection*{I\+M\+P\+O\+R\+T\+A\+N\+T}

This command writes into the {\ttfamily /etc} directory and as such it requires root permissions. Use {\ttfamily kdb file system/elektra/mountpoints} to find out where exactly it will write to.

\subsection*{O\+P\+T\+I\+O\+N\+S}


\begin{DoxyItemize}
\item {\ttfamily -\/\+H}, {\ttfamily -\/-\/help}\+: Show the man page.
\item {\ttfamily -\/\+V}, {\ttfamily -\/-\/version}\+: Print version info.
\item {\ttfamily -\/d}, {\ttfamily -\/-\/debug}\+: Give debug information or ask debug questions (in interactive mode).
\item {\ttfamily -\/i}, {\ttfamily -\/-\/interactive}\+: Instead of passing all mounting information by parameters ask the user interactively.
\item {\ttfamily -\/\+R}, {\ttfamily -\/-\/resolver $<$name$>$}\+: Specify the resolver plugin to use if no resolver is given, the default resolver is used. See also {\ttfamily /sw/kdb/current/resolver} \href{#KDB}{\tt below}.
\item {\ttfamily -\/0}, {\ttfamily -\/-\/null}\+: Use binary 0 termination.
\item {\ttfamily -\/1}, {\ttfamily -\/-\/first}\+: Suppress the first column.
\item {\ttfamily -\/2}, {\ttfamily -\/-\/second}\+: Suppress the second column.
\item {\ttfamily -\/3}, {\ttfamily -\/-\/third}\+: Suppress the third column.
\item {\ttfamily -\/c}, {\ttfamily -\/-\/plugins-\/config}\+: Add a plugin configuration for all plugins.
\end{DoxyItemize}

\subsection*{K\+D\+B}


\begin{DoxyItemize}
\item {\ttfamily /sw/kdb/current/resolver}\+: The resolver that will be added automatically, if {\ttfamily -\/\+R} is not given.
\item {\ttfamily /sw/kdb/current/plugins}\+: It contains a space-\/separated list of plugins which are added automatically (by default sync).
\end{DoxyItemize}

\subsection*{E\+X\+A\+M\+P\+L\+E\+S}

To list the currently mounted backends\+: {\ttfamily kdb mount}

To mount a system configuration file using the ini format\+: {\ttfamily kdb mount /etc/configuration.ini system/example ini}

Print a null-\/terminated output of paths and backend names\+: {\ttfamily kdb mount -\/02 $\vert$ xargs -\/0n 2 echo}

To mount the /etc/file system file with two plugins with a respective configuration option each\+: {\ttfamily kdb mount /etc/file system/file plugin1 plugin1config=config1 plugin2 plugin2config=config2}

To mount the /etc/file system file with two plugins and setting both to be verbose\+: {\ttfamily kdb mount -\/c verbose=1 /etc/file system/file plugin1 plugin2}

To recode and rename a configuration file using Elektra\+: {\ttfamily kdb mount s.\+ini recode.\+txt ni rename cut=path iconv recode=utf8..latin1}

\subsection*{S\+E\+E A\+L\+S\+O}


\begin{DoxyItemize}
\item \hyperlink{md_doc_help_kdb-umount_doc_help_kdb-umount_md}{kdb-\/umount(7)}.
\item \hyperlink{md_doc_help_elektra-mounting_doc_help_elektra-mounting_md}{elektra-\/mounting(7)}.
\item elektra-\/plugins(7). 
\end{DoxyItemize}