diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-01-09 16:52:35 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-01-10 18:17:27 +0200 |
commit | e5f68184bfe91f6874fe8c2344dbd5fa613d6bee (patch) | |
tree | 9860e2bc6c827bf69d1c324303e01c86efd94e65 /src/cmd/restore.rs | |
parent | 7ff248232a414b907b3abe464cc015e5ea48c236 (diff) | |
download | obnam2-e5f68184bfe91f6874fe8c2344dbd5fa613d6bee.tar.gz |
feat! use SQLite db for chunk index on server
This speeds startup a lot. However, the backup repository needs to be
re-created from scratch and internal APIs have change in incompatible
ways.
Diffstat (limited to 'src/cmd/restore.rs')
-rw-r--r-- | src/cmd/restore.rs | 5 |
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); |