aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 22977ae..c1c6b93 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -18,7 +18,9 @@ use std::{
pub type Serial = u64;
#[derive(Parser)]
+/// A tool for safely automating offsite backups over a network
struct Args {
+ /// Path to the configuration file
config: PathBuf,
#[clap(subcommand)]
action: Action,
@@ -26,10 +28,14 @@ struct Args {
#[derive(Subcommand)]
enum Action {
+ /// Run as a server
Daemon,
+ /// List backups stored on other peers
List {
+ /// Which peers to list backups of; all if not specified
peer: Option<String>,
},
+ /// Download a backup
Download {
path: PathBuf,
/// Which peer to download from, any if not specified
@@ -37,6 +43,7 @@ enum Action {
/// Serial of the backup to download, latest if not specified
serial: Option<Serial>,
},
+ /// Upload a backup to one or more peers
Upload {
/// Path to backup file
path: PathBuf,