mirror of https://github.com/dswd/zvault
Rearranged arguments to be SRC, DST
This commit is contained in:
parent
8001c0ef83
commit
032848466f
|
@ -74,7 +74,7 @@ pub fn run(path: &str, bundle_size: usize, chunker: ChunkerType, compression: Op
|
||||||
assert_eq!(chunks.iter().map(|c| c.1).sum::<usize>(), size as usize);
|
assert_eq!(chunks.iter().map(|c| c.1).sum::<usize>(), size as usize);
|
||||||
let chunk_size_avg = size as f32 / chunks.len() as f32;
|
let chunk_size_avg = size as f32 / chunks.len() as f32;
|
||||||
let chunk_size_stddev = (chunks.iter().map(|c| (c.1 as f32 - chunk_size_avg).powi(2)).sum::<f32>() / (chunks.len() as f32 - 1.0)).sqrt();
|
let chunk_size_stddev = (chunks.iter().map(|c| (c.1 as f32 - chunk_size_avg).powi(2)).sum::<f32>() / (chunks.len() as f32 - 1.0)).sqrt();
|
||||||
println!("- {} chunks, avg size: {}, stddev: {}", chunks.len(), to_file_size(chunk_size_avg as u64), to_file_size(chunk_size_stddev as u64));
|
println!("- {} chunks, avg size: {} ±{}", chunks.len(), to_file_size(chunk_size_avg as u64), to_file_size(chunk_size_stddev as u64));
|
||||||
|
|
||||||
println!();
|
println!();
|
||||||
|
|
||||||
|
|
|
@ -145,8 +145,8 @@ pub fn parse() -> Arguments {
|
||||||
(@subcommand backup =>
|
(@subcommand backup =>
|
||||||
(about: "creates a new backup")
|
(about: "creates a new backup")
|
||||||
(@arg full: --full "create a full backup")
|
(@arg full: --full "create a full backup")
|
||||||
(@arg BACKUP: +required "repository::backup path")
|
|
||||||
(@arg SRC: +required "source path to backup")
|
(@arg SRC: +required "source path to backup")
|
||||||
|
(@arg BACKUP: +required "repository::backup path")
|
||||||
)
|
)
|
||||||
(@subcommand restore =>
|
(@subcommand restore =>
|
||||||
(about: "restores a backup (or subpath)")
|
(about: "restores a backup (or subpath)")
|
||||||
|
@ -177,8 +177,8 @@ pub fn parse() -> Arguments {
|
||||||
)
|
)
|
||||||
(@subcommand import =>
|
(@subcommand import =>
|
||||||
(about: "reconstruct a repository from the remote files")
|
(about: "reconstruct a repository from the remote files")
|
||||||
(@arg REPO: +required "path of the local repository to create")
|
|
||||||
(@arg REMOTE: +required "remote repository path")
|
(@arg REMOTE: +required "remote repository path")
|
||||||
|
(@arg REPO: +required "path of the local repository to create")
|
||||||
)
|
)
|
||||||
(@subcommand info =>
|
(@subcommand info =>
|
||||||
(about: "displays information on a repository, a backup or a path in a backup")
|
(about: "displays information on a repository, a backup or a path in a backup")
|
||||||
|
|
Loading…
Reference in New Issue