Module backup

Module backup 

Source
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§

BackupManifest
BackupManifestEntry

Constants§

BACKUP_MANIFEST_FILE_NAME
DB_SNAPSHOT_TAR_PREFIX

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