Expand description
Core backup logic for creating and restoring encrypted backup archives.
This module handles the mechanics of building backup manifests, encrypting
files into age-wrapped tar archives, and extracting them. CLI-specific
orchestration (config loading, recipient resolution, user output) lives in
crate::cli::commands::backup.
Structs§
Constants§
Functions§
- build_
backup_ manifest - copy_
db_ snapshot_ to_ original_ path - Copy the extracted database snapshot directory to its original path.
- copy_
restored_ files_ to_ original_ paths - Copy each restored config file from the extract directory to its original path as recorded in the manifest. Refuses to overwrite anything.
- encrypt_
files_ to_ age_ archive - encrypted_
backup_ file_ name - extract_
dir_ name - Determine the directory name to extract a backup tarball into.
- read_
backup_ manifest - restore_
backup_ entries - write_
manifest_ to_ extract_ dir