Skip to main content

Module archive

Module archive 

Source

Modules§

archive_options
exporter
Archive writing. export writes the version and the starting nonce in the clear, then one zstd stream of length-prefixed AES-GCM frames: the metadata, then every element of one database snapshot. Frames are written as rows are read, so memory does not grow with the history.
importer

Structs§

ArchiveImporter
BackupMetadata

Enums§

ArchiveError
Archive export or import failure.
UnreadableGroup
Why an eligible group could not be exported.

Constants§

BACKUP_VERSION
ENC_KEY_SIZE
NONCE_SIZE
TAG_SIZE

Functions§

check_key
Rejects a key that is not ENC_KEY_SIZE bytes. Export and import call it first; callers holding a large input may call it before copying that input.
insert_importer