We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 564b8f4 commit a95e45fCopy full SHA for a95e45f
src/sql_commands.cc
@@ -285,8 +285,15 @@ backup_user_db(const std::string& filename)
285
loop_count += 1;
286
}
287
288
+ {
289
+ auto total = sqlite3_backup_pagecount(backup);
290
+ auto complete = total - sqlite3_backup_remaining(backup);
291
+ bguard.update(complete, total);
292
+ }
293
sqlite3_backup_finish(backup);
- log_info("backup complete");
294
+ log_info("backup complete: complete=%llu; total=%llu",
295
+ backup_progress_t::INSTANCE.bp_complete.load(),
296
+ backup_progress_t::INSTANCE.bp_total.load());
297
298
299
static Result<std::string, lnav::console::user_message>
0 commit comments