summaryrefslogtreecommitdiff
path: root/src/backup_progress.rs
AgeCommit message (Collapse)AuthorFilesLines
2021-08-01refactor: add a type alias for generation idsLars Wirzenius1-1/+2
This will make it harder to accidentally use a string. Can still be confused with a chunk id. Sponsored-by: author
2021-06-19chore: bump dependency on indicatif to 0.16, and fix what's neededLars Wirzenius1-3/+2
Change calls to set_message to pass ownership of the message, rather than just letting it borrow the message. Sponsored-by: author
2021-02-23feat: have separate progress bar for each backup phaseLars Wirzenius1-0/+26
2021-02-16fix: in an incremental backup, update total file count if neededLars Wirzenius1-0/+3
Previously, we were showing "N/M", where N is the number of files found in the current backup run, and M the number of files in the previous backup. I found this confusing if the new run finds more files than were in the previous run. Now we increment M if N goes beyond it.
2021-02-16fix: initial backup progress bar only shows total backup countLars Wirzenius1-1/+1
Previously it showed "N/M", where N was the number of files found in the current backup run, and M was the number of files found in the previous generation. But that made no sense for an initial backup, so now we only show N.
2021-02-16feat: change progress bars to show which kind of backup is happeningLars Wirzenius1-0/+2
2021-02-16fix: drop initial backup progress barLars Wirzenius1-1/+0
It didn't actually show any progress and so was useless.
2021-02-16refactor: split BackupProgress into initial, increemental variantsLars Wirzenius1-1/+20
This makes it possible to later have different progress bars for initial and incremental backup runs. However, for now the bars are identical.
2021-01-16feat: backup run now ends with a summaryLars Wirzenius1-0/+1
"obnam backup" now writes a summary like the following at the end: status: OK duration: 24 file-count: 119245 generation-id: ef353c79-a94f-4903-bd80-e741ea454c84 We can add more fields to that later, as needed and requested. This was the data that's easily at hand.
2021-01-05refactor: move policy on whether to back up a file into a moduleLars Wirzenius1-0/+45
This commit also splits up the src/cmd/backup.rs module into other, smaller, more cohesive modules that are easier to understand and use.