solana_runtime::snapshot_utils

Function purge_old_bank_snapshots

source
pub fn purge_old_bank_snapshots(
    bank_snapshots_dir: impl AsRef<Path>,
    num_bank_snapshots_to_retain: usize,
    filter_by_type: Option<BankSnapshotType>,
)
Expand description

Purges bank snapshots, retaining the newest num_bank_snapshots_to_retain