SnapshotSetAdmin

Trait SnapshotSetAdmin 

Source
pub trait SnapshotSetAdmin: Send {
    // Required methods
    fn prune_backup_snapshots(
        &mut self,
        max_backups_keep: usize,
    ) -> Result<(), Error>;
    fn prune_not_completed_snapshots(&mut self) -> Result<(), Error>;
}
Expand description

Admin operations for a snapshot set, e.g. pruning snapshots.

Required Methods§

Source

fn prune_backup_snapshots( &mut self, max_backups_keep: usize, ) -> Result<(), Error>

Prunes backup snapshots, keeping only the latest max_backups_keep full snapshots. This is useful to limit the number of backup snapshots that are kept around. Warning: This will delete files from the file system.

Source

fn prune_not_completed_snapshots(&mut self) -> Result<(), Error>

Prunes snapshots that are not completed, e.g. due to a power failure or process panic. This is useful to clean up incomplete snapshots that should not be used. Warning: This will delete files from the file system.

Implementors§