{\ttfamily kdb export $<$source$>$ \mbox{[}$<$format$>$\mbox{]}}

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

This command allows a user to export keys from the key database. Keys are exported to {\ttfamily stdout} in whichever format is specified. This command can also be used to view full key(s) including their values.

\subsection*{U\+S\+A\+G\+E}

Where {\ttfamily source} is the path of the key(s) you want to export. Additionally, the user can specify a format to use by passing it as the option argument {\ttfamily format}. The {\ttfamily format} attribute relies on Elektra's plugin system to export the keys in the desired format.\+The user can view all plugins available for use by running the kdb-\/list(1) command. To learn about any plugin, the user can simply use the kdb-\/info(1) command. The {\ttfamily storage} plugin can be configured at compile-\/time or changed by the link {\ttfamily libelektra-\/storage.\+so}.

\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 -\/p}, {\ttfamily -\/-\/profile}=$<$profile$>$\+: Use a different kdb profile.
\item {\ttfamily -\/\+E}, {\ttfamily -\/-\/without-\/elektra}\+: Omit the {\ttfamily system/elektra} directory.
\item {\ttfamily -\/c}, {\ttfamily -\/-\/plugins-\/config}=$<$pluginconfig$>$\+: Add a configuration to the format plugin.
\end{DoxyItemize}

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


\begin{DoxyItemize}
\item {\ttfamily /sw/elektra/kdb/\#0/current/format} Change default format (if none is given at commandline) and built-\/in default is not your preferred format.
\end{DoxyItemize}

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

To view your full key database in Elektra's {\ttfamily storage} format\+: {\ttfamily kdb export /}

To backup your full key database in Elektra's {\ttfamily storage} format to a file called {\ttfamily full-\/backup.\+ecf}\+: {\ttfamily kdb export / $>$ full-\/backup.\+ecf}

To view a keyset stored in {\ttfamily user/keyset} in the X\+M\+L format\+: {\ttfamily kdb export user/keyset xmltool}

To backup a keyset stored in {\ttfamily user/keyset} in the {\ttfamily ini} format to a file called {\ttfamily keyset.\+ini}\+: {\ttfamily kdb export user/keyset ini $>$ keyset.\+ini}

Change default format to {\ttfamily simpleini}\+: {\ttfamily kdb set /sw/elektra/kdb/\#0/current/format simpleini}

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


\begin{DoxyItemize}
\item For an introductions into plugins, read \hyperlink{md_doc_help_elektra-plugins-framework_doc_help_elektra-plugins-framework_md}{elektra-\/plugins-\/framework(7)}.
\item Only storage plugins can be used for formatting. 
\end{DoxyItemize}