diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2024-02-12 11:22:40 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2024-02-12 11:22:40 +0100 |
commit | 8c59db58485763315fe0c5b6744f3d3ee04eceaf (patch) | |
tree | 4b9d6bfed61ffdf202f18e194092817ccd9ea07c /hbak | |
parent | e2e5ae95b643124e9085123717e5d9e045cb1376 (diff) |
hbak: add synchronize subcommand definition
Diffstat (limited to 'hbak')
-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(()) |