This commit is contained in:
JMARyA 2025-01-05 10:26:37 +01:00
parent 96eec3a432
commit cc74dd1287
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -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::<Vec<_>>()
.join("+++"),
nowtime()
);