diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-14 04:57:48 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-14 04:57:48 +0200 |
commit | 23d3316b8c158847f7f4bb34fae49ed658058b68 (patch) | |
tree | c4d4b4ff7de9d159284fef42483151529a130f0c | |
parent | 9ffc1889fccac1917364504730daebb958abe87a (diff) | |
download | online-offsite-backup-23d3316b8c158847f7f4bb34fae49ed658058b68.tar online-offsite-backup-23d3316b8c158847f7f4bb34fae49ed658058b68.tar.bz2 online-offsite-backup-23d3316b8c158847f7f4bb34fae49ed658058b68.tar.zst |
more doc
-rw-r--r-- | src/main.rs | 7 |
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, |