stouputils.backup package#
This module provides utilities for backup management.
backup_cli()- Main entry point for command line usagecreate_delta_backup()- Creates a ZIP delta backup, saving only modified or new files while tracking deleted filesconsolidate_backups()- Consolidates the files from the given backup and all previous ones into a new ZIP filelimit_backups()- Limits the number of delta backups by consolidating the oldest onesget_file_hash()- Computes the SHA-256 hash of a fileextract_hash_from_zipinfo()- Extracts the stored hash from a ZipInfo object’s commentget_all_previous_backups()- Retrieves all previous backups in a folder and maps each backup to a dictionary of file paths and their hashesis_file_in_any_previous_backup()- Checks if a file with the same hash exists in any previous backup