Overview
Warchaeology provides command-line tools for inspecting, validating, converting,
deduplicating, indexing, searching, and serving web archive collections.
The executable is named warc.
Choose a workflow
| Task | Command | Documentation |
|---|---|---|
| Inspect records and payloads | warc ls, warc cat, warc console | CLI reference |
| Validate an archive | warc validate | Validation options |
| Convert ARC, NEDLIB, or WARC inputs | warc convert | Conversion options |
| Deduplicate payloads | warc dedup | Deduplication options |
| Audit revisit references and recover lost donors | warc audit | Collection audit and recovery |
| Rebuild independently replayable yearly collections | warc redupe | Yearly preservation guide |
| Export CDXJ or populate an index database | warc index | Capture indexing guide |
| Index WACZ packages | warc index, warc serve | WACZ packages |
| Search archived text | warc index --fulltext, warc serve --fulltext | Search console and API |
| Build immutable indexes and serve capture queries | warc zipnum, warc serve | Zipnum and serving |
Rebuild collections by time interval
A donor is a record that stores the payload referenced by a revisit record.
redupe inventories all supplied WARC records, resolves revisit dependencies,
and groups captures by UTC year, month or day (--interval). It retains request and metadata
records, accounts for identical aliases, and reports conflicting IDs or missing
payload donors.
Start with an audit, then write the yearly collection and index a completed year:
warc redupe --audit --verify-payloads --report audit.json --recursive sources/
warc redupe --output-dir yearly --index-dir working-index \
--report transformation.json --recursive sources/
warc index --index-file yearly/2023.cdxj yearly/2023/
Supply older donor WARCs as well as the captures you want to reorganize. Each period
is published only after its output files and payload dependencies have been
verified. Keep working-index to restart an interrupted rewrite with the same
sources and configuration.
See the yearly preservation guide for audit findings,
checksums, provenance manifests, restart behavior, and replay setup. Capture
indexes generated with warc index provide URL/time lookup for the yearly WARCs.
Getting started
- Install Warchaeology.
- Read directory, archive, and FTP inputs.
- Configure flags, environment variables, and YAML.
- Run hooks around file handling.
- Check migration requirements, including index database reindexing.
- Contribute to the project.
Run warc help or warc COMMAND --help for command-specific options.