summaryrefslogtreecommitdiff
path: root/src/backup_run.rs
AgeCommit message (Collapse)AuthorFilesLines
2021-02-23feat: have separate progress bar for each backup phaseLars Wirzenius1-9/+41
2021-02-19feat: back up and restore Unix domain socketsLars Wirzenius1-1/+5
2021-02-16refactor: split BackupRun into initial, incremental variantsLars Wirzenius1-13/+33
This is clearer, easier to modify than having a flag to indicate which variant we're running.
2021-02-16refactor: split BackupProgress into initial, increemental variantsLars Wirzenius1-1/+1
This makes it possible to later have different progress bars for initial and incremental backup runs. However, for now the bars are identical.
2021-02-07feat: if file can't be read, log that, don't end backup in errorLars Wirzenius1-9/+21
Such files won't be restored, as they'd be restored as empty file, and that would be confusing and thus bad.
2021-02-07refactor: rename Reason::Error to Reason::GenerationLookupErrorLars Wirzenius1-1/+4
New name is more precise. The meaning of the enum variant hasn't changed.
2021-02-07feat: add catch-all Reason variant for unknown reasonLars Wirzenius1-1/+1
Just in case the SQLite DB stores a reason this version of Obnam doesn't understand, we handle that now.
2021-02-06feat: use the chunk size setting from the client configurationLars Wirzenius1-2/+2
Use the chunk_size setting for file data. For the SQLite file, use a hard-coded size instead.
2021-02-06feat: client verifies server's TLS certificate by defaultLars Wirzenius1-1/+1
Configuration setting can disable it.
2021-02-04refactor: have per-module error enumsLars Wirzenius1-8/+23
This means that a function that parses step bindings can't return an error that the document is missing a title. Such an error return would be nonsensical, and we use the Rust type system to prevent it, at a small cost of being a bit verbose. Additional benefit is that the library portion of Obnam doesn't return anyhow::Result values anymore.
2021-01-05refactor: move policy on whether to back up a file into a moduleLars Wirzenius1-0/+92
This commit also splits up the src/cmd/backup.rs module into other, smaller, more cohesive modules that are easier to understand and use.