Importing and exporting keys
Export selected keys or everything matching a pattern, and restore them — through the server's own DUMP and RESTORE, so a value survives exactly.
Moving keys in and out of a file#
Export writes the keys, their values and their expiries in the same shape the import reads.
It uses the server’s own DUMP and RESTORE, so a value survives the round trip exactly —
including types Keydra has no editor for.
It is not an RDB file. A snapshot is the server writing its own memory to its own disk, inside its own container, and Keydra has no filesystem there. What it can export is what it can read.
The same format is what a backup destination receives, so a file exported by hand and one written by a nightly job are the same thing.
Exporting and importing keys#
-
transfer:exportto export,transfer:importto import.
To export:
-
Open the target’s Keys page.
-
Either select rows and use Export {count} keys, or use Export everything matching to export what the current glob matches.
-
The file downloads.
To import:
-
On the Keys page, open Import and export and choose the import action.
-
Choose the file.
-
Decide what happens to a key that already exists: replace it, or leave it alone.
-
Confirm.
The key list updates as keys arrive — the change goes out over the notification hub, so the count moves without a rescan.