Skip to main content

prune_old_backups

Function prune_old_backups 

pub(super) fn prune_old_backups(path: &Path) -> Result<()>
Available on crate feature tokio only.
Expand description

Deletes .corrupt-* backups for path beyond the MAX_BACKUPS most recent, so a repeatedly-failing journal doesn’t accumulate backups forever.