hoard 0.6.1

Hoard backups of files across your filesystem into one location.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::checkers::history::operation::cleanup_operations;

#[tracing::instrument]
pub(crate) async fn run_cleanup() -> Result<(), super::Error> {
    match cleanup_operations().await {
        Ok(count) => {
            tracing::info!("cleaned up {} log files", count);
            Ok(())
        }
        Err((count, error)) => Err(super::Error::Cleanup {
            success_count: count,
            error,
        }),
    }
}