diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-01-16 17:59:29 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-01-16 17:59:29 +0200 |
commit | 11253df6ac95554a895aa1412c75020ce663260c (patch) | |
tree | bcf65e6761d5eff279f8c4c3f58d8992bd5b878f /src/policy.rs | |
parent | 8653cbf266b8088a01d74e83b7be6fb7cc7c8c48 (diff) | |
download | obnam2-11253df6ac95554a895aa1412c75020ce663260c.tar.gz |
docs: add some explanation of what Skipped should mean
Sponsored-by: author
Diffstat (limited to 'src/policy.rs')
-rw-r--r-- | src/policy.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/policy.rs b/src/policy.rs index 9b66c1d..7241f0f 100644 --- a/src/policy.rs +++ b/src/policy.rs @@ -6,6 +6,15 @@ use crate::generation::LocalGeneration; use log::{debug, warn}; /// Policy for what gets backed up. +/// +/// The policy allows two aspects to be controlled: +/// +/// * should new files )(files that didn't exist in the previous +/// backup be included in the new backup? +/// * should files that haven't been changed since the previous backup +/// be included in the new backup? +/// +/// If policy doesn't allow a file to be included, it's skipped. pub struct BackupPolicy { new: bool, old_if_changed: bool, |