\label{doc_help_kdb-restore_md_md_doc_help_kdb_restore}%
\Hypertarget{doc_help_kdb-restore_md_md_doc_help_kdb_restore}%
 \hypertarget{doc_help_kdb-restore_md_autotoc_md2669}{}\doxysection{SYNOPSIS}\label{doc_help_kdb-restore_md_autotoc_md2669}
{\ttfamily kdb restore $<$timestamp$>$}\hypertarget{doc_help_kdb-restore_md_autotoc_md2670}{}\doxysection{DESCRIPTION}\label{doc_help_kdb-restore_md_autotoc_md2670}
This command will restore everything backed up by {\ttfamily kdb backup} (or stashed by {\ttfamily kdb stash}) where {\ttfamily timestamp} is the timestamp returned by {\ttfamily kdb backup} (or {\ttfamily kdb stash}).\hypertarget{doc_help_kdb-restore_md_autotoc_md2671}{}\doxysection{WARNING}\label{doc_help_kdb-restore_md_autotoc_md2671}
These changes cannot be undone, please use with care! This command writes into the {\ttfamily /etc} directory and as such it requires root permissions.\hypertarget{doc_help_kdb-restore_md_autotoc_md2672}{}\doxysection{EXAMPLES}\label{doc_help_kdb-restore_md_autotoc_md2672}

\begin{DoxyCode}{0}
\DoxyCodeLine{kdb set user:/tests/x foo}
\DoxyCodeLine{\#>}
\DoxyCodeLine{\#> Create a new key user:/tests/x with string "{}foo"{}}
\DoxyCodeLine{}
\DoxyCodeLine{sudo kdb mount a.ini /a}
\DoxyCodeLine{sudo kdb mount}
\DoxyCodeLine{\#> a.ini on /a with name /a}
\DoxyCodeLine{\#> none on system:/info/elektra/constants with name system:/info/elektra/constants}
\DoxyCodeLine{\#> /usr/local/share/doc/elektra/CONTRACT.ini on system:/info/elektra/contract/\#0 with name system:/info/elektra/contract/\#0}
\DoxyCodeLine{\#> none on system:/info/elektra/desktop with name system:/info/elektra/desktop}
\DoxyCodeLine{\#> /usr/local/share/doc/elektra/METADATA.ini on system:/info/elektra/metadata/\#0 with name system:/info/elektra/metadata/\#0}
\DoxyCodeLine{\#> none on system:/info/elektra/uname with name system:/info/elektra/uname}
\DoxyCodeLine{}
\DoxyCodeLine{sudo kdb backup}
\DoxyCodeLine{\#> kdb restore 1500000000}
\DoxyCodeLine{}
\DoxyCodeLine{kdb get user:/tests/x}
\DoxyCodeLine{\#> Did not find key}
\DoxyCodeLine{}
\DoxyCodeLine{kdb mount}
\DoxyCodeLine{}
\DoxyCodeLine{kdb restore 1500000000}
\DoxyCodeLine{}
\DoxyCodeLine{kdb get user:/tests/x}
\DoxyCodeLine{\#> foo}
\DoxyCodeLine{}
\DoxyCodeLine{kdb mount}
\DoxyCodeLine{\#> a.ini on /a with name /a}
\DoxyCodeLine{\#> none on system:/info/elektra/constants with name system:/info/elektra/constants}
\DoxyCodeLine{\#> /usr/local/share/doc/elektra/CONTRACT.ini on system:/info/elektra/contract/\#0 with name system:/info/elektra/contract/\#0}
\DoxyCodeLine{\#> none on system:/info/elektra/desktop with name system:/info/elektra/desktop}
\DoxyCodeLine{\#> /usr/local/share/doc/elektra/METADATA.ini on system:/info/elektra/metadata/\#0 with name system:/info/elektra/metadata/\#0}
\DoxyCodeLine{\#> none on system:/info/elektra/uname with name system:/info/elektra/uname}
\DoxyCodeLine{}
\DoxyCodeLine{sudo kdb umount /a}

\end{DoxyCode}
\hypertarget{doc_help_kdb-restore_md_autotoc_md2673}{}\doxysection{SEE ALSO}\label{doc_help_kdb-restore_md_autotoc_md2673}

\begin{DoxyItemize}
\item \mbox{\hyperlink{doc_help_kdb-backup_md}{kdb-\/backup(1)}}
\item \mbox{\hyperlink{doc_help_kdb-stash_md}{kdb-\/stash(1)}} 
\end{DoxyItemize}