Skip to main content

Crate eat_rocks

Crate eat_rocks 

Source
Expand description

Restore a rocks backup from object storage

use eat_rocks::{public_bucket, restore};
let store = public_bucket("https://constellation.t3.storage.dev")?;
restore(store, "", "/tmp/constellation-db", Default::default()).await?;

the public_bucket function (easy feature, enabled by default) works with s3-compatible stores (like tigris) which are configured for public read access.

you can use any ObjectStore to restore from pretty much any backend (S3, GCS, Azure, local filesystem, …)

Re-exports§

pub use meta::BackupFile;
pub use meta::BackupMeta;
pub use restore::DEFAULT_CONCURRENCY;
pub use restore::RestoreOptions;
pub use restore::fetch_meta;
pub use restore::list_backup_ids;
pub use restore::restore;

Modules§

meta
restore

Enums§

Error
Errors that can occur during backup discovery, metadata parsing, or restore.

Functions§

public_bucket
Build an unsigned s3-compatible object store