summaryrefslogtreecommitdiff
path: root/src/backup_reason.rs
AgeCommit message (Collapse)AuthorFilesLines
2021-03-27refactor: avoid confusing function name from_strLars Wirzenius1-1/+1
2021-02-07feat: if file can't be read, log that, don't end backup in errorLars Wirzenius1-0/+3
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-3/+3
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/+4
Just in case the SQLite DB stores a reason this version of Obnam doesn't understand, we handle that now.
2021-01-05refactor: add BackedUpFile to avoid using a tupleLars Wirzenius1-1/+13
The struct is easier to use right.
2021-01-05refactor: move policy on whether to back up a file into a moduleLars Wirzenius1-0/+34
This commit also splits up the src/cmd/backup.rs module into other, smaller, more cohesive modules that are easier to understand and use.