$darkmode
Elektra 0.11.0
kdb-stash -- Stash away KDB to be restored later

SYNOPSIS

kdb stash

DESCRIPTION

This command will stash away the system, user and spec configuration, i.e. it releases all mount points and reset Elektra to a clean state. Afterwards a timestamp which can be used to restore everything will be printed.

The backup will be done in the /var/tmp directory, so make sure the backup is not deleted.

EXAMPLES

1 kdb set user:/x foo
2 #>
3 #> Create a new key user:/x with string "foo"
4 
5 kdb mount a.ini /a
6 kdb mount
7 #> a.ini on /a with name /a
8 #> none on system:/info/elektra/constants with name system:/info/elektra/constants
9 #> /usr/local/share/doc/elektra/CONTRACT.ini on system:/info/elektra/contract/#0 with name system:/info/elektra/contract/#0
10 #> none on system:/info/elektra/desktop with name system:/info/elektra/desktop
11 #> /usr/local/share/doc/elektra/METADATA.ini on system:/info/elektra/metadata/#0 with name system:/info/elektra/metadata/#0
12 #> none on system:/info/elektra/uname with name system:/info/elektra/uname
13 
14 kdb backup
15 #> kdb restore 1500000000
16 
17 kdb get user:/x
18 #> Did not find key
19 
20 kdb mount
21 
22 kdb restore 1500000000
23 
24 kdb get user:/x
25 #> foo
26 
27 kdb mount
28 #> a.ini on /a with name /a
29 #> none on system:/info/elektra/constants with name system:/info/elektra/constants
30 #> /usr/local/share/doc/elektra/CONTRACT.ini on system:/info/elektra/contract/#0 with name system:/info/elektra/contract/#0
31 #> none on system:/info/elektra/desktop with name system:/info/elektra/desktop
32 #> /usr/local/share/doc/elektra/METADATA.ini on system:/info/elektra/metadata/#0 with name system:/info/elektra/metadata/#0
33 #> none on system:/info/elektra/uname with name system:/info/elektra/uname

SEE ALSO