From cc74dd12876f4a84747427ac5da042e84aeebeb1 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sun, 5 Jan 2025 10:26:37 +0100 Subject: [PATCH] fix --- src/borg.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/borg.rs b/src/borg.rs index 8fb7de8..20634e7 100644 --- a/src/borg.rs +++ b/src/borg.rs @@ -16,7 +16,11 @@ pub fn create_archive(conf: &BorgConfig) { std::fs::read_to_string("/etc/hostname") .map(|x| x.trim().to_string()) .unwrap_or(String::from("UNKNOWN")), - conf.src.join("+++"), + conf.src + .iter() + .map(|x| x.trim_start_matches("/").replace("/", "-")) + .collect::>() + .join("+++"), nowtime() );