fix
This commit is contained in:
parent
96eec3a432
commit
cc74dd1287
1 changed files with 5 additions and 1 deletions
|
@ -16,7 +16,11 @@ pub fn create_archive(conf: &BorgConfig) {
|
||||||
std::fs::read_to_string("/etc/hostname")
|
std::fs::read_to_string("/etc/hostname")
|
||||||
.map(|x| x.trim().to_string())
|
.map(|x| x.trim().to_string())
|
||||||
.unwrap_or(String::from("UNKNOWN")),
|
.unwrap_or(String::from("UNKNOWN")),
|
||||||
conf.src.join("+++"),
|
conf.src
|
||||||
|
.iter()
|
||||||
|
.map(|x| x.trim_start_matches("/").replace("/", "-"))
|
||||||
|
.collect::<Vec<_>>()
|
||||||
|
.join("+++"),
|
||||||
nowtime()
|
nowtime()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue