stouputils.backup.create module#
- create_delta_backup(
- source_path: str,
- destination_folder: str,
- exclude_patterns: list[str] | None = None,
Creates a ZIP delta backup, saving only modified or new files while tracking deleted files.
- Parameters:
source_path (str) – Path to the source file or directory to back up
destination_folder (str) – Path to the folder where the backup will be saved
exclude_patterns (list[str] | None) – List of glob patterns to exclude from backup
Examples:
> create_delta_backup("/path/to/source", "/path/to/backups", exclude_patterns=["libraries/*", "cache/*"]) [INFO HH:MM:SS] Creating ZIP backup [INFO HH:MM:SS] Backup created: '/path/to/backups/backup_2025_02_18-10_00_00.zip'