kafka-backup-core
Core engine for high-performance Kafka backup and restore operations with point-in-time recovery (PITR).
Features
- Multi-cloud storage - S3, Azure Blob, GCS, or local filesystem
- Point-in-time recovery - Restore to any millisecond within your backup window
- Consumer offset recovery - Automatically reset consumer group offsets after restore
- High performance - 100+ MB/s throughput with zstd/lz4 compression
- Fault tolerance - Circuit breaker pattern for resilient operations
Installation
Add to your Cargo.toml:
[]
= "0.1"
= { = "1", = ["full"] }
Usage
Backup Example
use ;
async
Restore Example
use ;
async
Consumer Offset Reset
use ;
async
Main Components
| Component | Description |
|---|---|
BackupEngine |
Orchestrates backup operations to cloud storage |
RestoreEngine |
Handles restore with PITR filtering |
StorageBackend |
Abstraction over S3, Azure, GCS, filesystem |
OffsetResetExecutor |
Consumer group offset management |
ThreePhaseRestore |
Complete restore with offset recovery |
CircuitBreaker |
Fault tolerance for transient failures |
Storage Backends
use ;
// S3
let s3 = S3 ;
// Azure Blob
let azure = Azure ;
// Local filesystem
let fs = Filesystem ;
Configuration
See the configuration guide for complete options.
Documentation
CLI Tool
For command-line usage, install the kafka-backup CLI:
# Homebrew (macOS/Linux)
# Or download from GitHub Releases
License
MIT License - see LICENSE