Commit db076dd0 authored by Sophie Herold's avatar Sophie Herold
Browse files

Add caches to excludes for new configs

Closes #10
parent fd4bb2e6
......@@ -95,15 +95,16 @@ impl BackupConfig {
pub fn new_from_repo(repo: BackupRepo) -> Self {
let mut include = std::collections::BTreeSet::new();
// TODO: Adds Home dir, good idea?
include.insert(std::path::PathBuf::new());
include.insert("".into());
let mut exclude = std::collections::BTreeSet::new();
exclude.insert(".cache".into());
Self {
id: glib::uuid_string_random().unwrap().to_string(),
repo,
encrypted: false,
include,
exclude: Default::default(),
exclude,
last_run: None,
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment