diff --git a/src/main.rs b/src/main.rs index 6c51fc9..8c84bf6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,6 +10,7 @@ use zfs_backup::todo; use zfs_backup::zfs::ZPool; fn main() -> Result<()> { + // TODO clean old snapshots verify_running_as_root()?; let config = config::Config::read("config.toml")?; @@ -57,12 +58,12 @@ fn do_backup( backup_pool: &ZPool, snapshot_tag: String, snapshot_interval: String, - datasets: Vec, + do_not_backup_datasets: Vec, ) -> Result { let todos = todo::Todo::plan( local_pool, backup_pool, - datasets, + do_not_backup_datasets, snapshot_tag, snapshot_interval, )