rustlite-snapshot 0.8.0

Snapshot and backup functionality for RustLite (internal implementation detail)
Documentation

RustLite Snapshot Manager

Snapshot and backup functionality for RustLite databases.

⚠️ Internal Implementation Detail

This crate is an internal implementation detail of RustLite.

Users should depend on the main rustlite crate instead, which provides the stable public API. This crate's API may change without notice between minor versions.

# In your Cargo.toml - use the main crate, not this one:
[dependencies]
rustlite = "0.3"

This crate provides point-in-time snapshot and backup capabilities for RustLite databases, enabling:

  • Point-in-time snapshots: Create consistent snapshots without blocking writes
  • Backup and restore: Full database backups for disaster recovery
  • Incremental snapshots: Copy only changed files since last snapshot

Usage

use rustlite_snapshot::{SnapshotManager, SnapshotConfig};

let manager = SnapshotManager::new("/path/to/db", SnapshotConfig::default())?;
let snapshot = manager.create_snapshot("/path/to/backup")?;
println!("Snapshot created at: {}", snapshot.path);