add todo
This commit is contained in:
+3
-2
@@ -10,6 +10,7 @@ use zfs_backup::todo;
|
|||||||
use zfs_backup::zfs::ZPool;
|
use zfs_backup::zfs::ZPool;
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
|
// TODO clean old snapshots
|
||||||
verify_running_as_root()?;
|
verify_running_as_root()?;
|
||||||
|
|
||||||
let config = config::Config::read("config.toml")?;
|
let config = config::Config::read("config.toml")?;
|
||||||
@@ -57,12 +58,12 @@ fn do_backup(
|
|||||||
backup_pool: &ZPool,
|
backup_pool: &ZPool,
|
||||||
snapshot_tag: String,
|
snapshot_tag: String,
|
||||||
snapshot_interval: String,
|
snapshot_interval: String,
|
||||||
datasets: Vec<String>,
|
do_not_backup_datasets: Vec<String>,
|
||||||
) -> Result<bool> {
|
) -> Result<bool> {
|
||||||
let todos = todo::Todo::plan(
|
let todos = todo::Todo::plan(
|
||||||
local_pool,
|
local_pool,
|
||||||
backup_pool,
|
backup_pool,
|
||||||
datasets,
|
do_not_backup_datasets,
|
||||||
snapshot_tag,
|
snapshot_tag,
|
||||||
snapshot_interval,
|
snapshot_interval,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user