25 practical automations

Archives & backups

Package, verify, and preserve important files. Each guide includes full code, usage instructions, and ideas for making it your own.

Search this category ↗
PythonBeginner

Check ZIP CRC integrity

Read ZIP payloads and report the first member failing its built-in CRC check.

Archives & backups
PythonBeginner

Combine ZIP archives

Merge multiple ZIPs into a new archive and refuse duplicate member paths.

Archives & backups
PythonBeginner

Compare ZIP snapshots

Find added, removed, and changed member payloads across two ZIP archives.

Archives & backups
PythonBeginner

Copy only changed backup files

Copy changed or new files relative to a prior checksum manifest and write an updated manifest.

Archives & backups
PythonBeginner

Create a portable TAR bundle

Create an uncompressed TAR of regular files with normalized ownership metadata.

Archives & backups
PythonBeginner

Estimate a backup size

Calculate uncompressed bytes and free-space headroom before creating a backup.

Archives & backups
PythonBeginner

Inspect ZIP contents

List member names, expanded bytes, and compressed bytes without extracting.

Archives & backups
PythonBeginner

Restore a deduplicated backup

Recreate file paths from a content-addressed backup after checking object hashes.

Archives & backups
PythonBeginner

Restore regular TAR files

Extract only regular files and directories after validating TAR member paths and sizes.

Archives & backups
PythonBeginner

Search text inside a ZIP

Report matching lines from small UTF-8 ZIP members without extracting them.

Archives & backups