diff options
Diffstat (limited to 'hbak/src/main.rs')
-rw-r--r-- | hbak/src/main.rs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/hbak/src/main.rs b/hbak/src/main.rs index a761e66..3fc0935 100644 --- a/hbak/src/main.rs +++ b/hbak/src/main.rs @@ -108,9 +108,20 @@ enum Commands { /// Take incremental snapshots rather than full snapshots. #[arg(short, long)] incremental: bool, - /// The subvolumes to take snapshots of. + /// The subvolumes to limit snapshotting to. subvols: Vec<String>, }, + /// Synchronize snapshots with remote nodes. + Synchronize { + /// The volumes to limit pushing to. + #[arg(long = "push")] + push: Vec<String>, + /// The volumes to limit pulling to. + #[arg(long = "pull")] + pull: Vec<String>, + /// The nodes to limit synchronization to. + nodes: Vec<String>, + }, } fn logic() -> Result<()> { @@ -268,6 +279,9 @@ fn logic() -> Result<()> { local_node.snapshot_now(subvol.clone(), incremental)?; } } + Commands::Synchronize { push, pull, nodes } => { + todo!() + } } Ok(()) |