summaryrefslogtreecommitdiff
path: root/src/cmd/restore.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/restore.rs')
-rw-r--r--src/cmd/restore.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/restore.rs b/src/cmd/restore.rs
index c882e21..d783a70 100644
--- a/src/cmd/restore.rs
+++ b/src/cmd/restore.rs
@@ -31,9 +31,10 @@ pub fn restore(config: &ClientConfig, gen_ref: &str, to: &Path) -> anyhow::Resul
None => return Err(ObnamError::UnknownGeneration(gen_ref.to_string()).into()),
Some(id) => id,
};
+ info!("generation id is {}", gen_id);
let gen = client.fetch_generation(&gen_id, &dbname)?;
- info!("restore file count: {}", gen.file_count()?);
+ info!("restoring {} files", gen.file_count()?);
let progress = create_progress_bar(gen.file_count()?, true);
for file in gen.files()? {
restore_generation(&client, &gen, file.fileno(), file.entry(), &to, &progress)?;
@@ -75,7 +76,7 @@ fn restore_generation(
to: &Path,
progress: &ProgressBar,
) -> anyhow::Result<()> {
- debug!("restoring {:?}", entry);
+ info!("restoring {:?}", entry);
progress.set_message(&format!("{}", entry.pathbuf().display()));
progress.inc(1);