Elektra
0.8.18
|
kdb export <source> [<format>]
This command allows a user to export keys from the key database. Keys are exported to stdout
in whichever format is specified. This command can also be used to view full key(s) including their values.
Where 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 format
. The 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 storage
plugin can be configured at compile-time or changed by the link libelektra-storage.so
.
-H
, --help
: Show the man page.-V
, --version
: Print version info.-p
, --profile
=<profile>: Use a different kdb profile.-E
, --without-elektra
: Omit the system/elektra
directory.-c
, --plugins-config
=<pluginconfig>: Add a configuration to the format plugin.-C
, --color
=[when]: Print never/auto(default)/always colored output./sw/elektra/kdb/#0/current/format
Change default format (if none is given at commandline) and built-in default is not your preferred format.To view your full key database in Elektra's storage
format: kdb export /
To backup your full key database in Elektra's storage
format to a file called full-backup.ecf
: kdb export / > full-backup.ecf
To view a keyset stored in user/keyset
in the XML format: kdb export user/keyset xmltool
To backup a keyset stored in user/keyset
in the ini
format to a file called keyset.ini
: kdb export user/keyset ini > keyset.ini
Change default format to simpleini
: kdb set /sw/elektra/kdb/#0/current/format simpleini