Compare commits

...

2 Commits

Author SHA1 Message Date
shoopea
762c538607 up version 2022-04-16 15:16:34 +08:00
shoopea
0083ab6907 path creation fix 2022-04-16 15:16:23 +08:00
2 changed files with 16 additions and 4 deletions

12
app.go
View File

@ -560,6 +560,18 @@ func (a AppConfig) SendSnapshots() (err error) {
return return
} }
if !cfg.Box[dest.Box()].ZFSIsZFS(dest.Path() + "/" + src.Box() + "/" + src.Path()) {
if *debugFlag {
log.Printf("AppConfig.SendSnapshots : %s : Creating on %s path %s", a.Name, dest.Box(), dest.Path()+"/"+src.Box()+"/"+src.Path())
}
if err = cfg.Box[dest.Box()].ZFSCreateZFS(dest.Path() + "/" + src.Box() + "/" + src.Path()); err != nil {
if *debugFlag {
log.Printf("AppConfig.SendSnapshots : %s : Creating on %s path %s failed (%s)", a.Name, dest.Box(), dest.Path()+"/"+src.Box()+"/"+src.Path(), err)
}
return
}
}
if *debugFlag { if *debugFlag {
log.Printf("AppConfig.SendSnapshots : %s : Initializing snapshot on %s from %s", a.Name, dest.Box(), string(sFirstSnapshot)) log.Printf("AppConfig.SendSnapshots : %s : Initializing snapshot on %s from %s", a.Name, dest.Box(), string(sFirstSnapshot))
} }

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "d2e5b34" var githash = "0083ab6"
var buildstamp = "2021-11-14_10:19:30" var buildstamp = "2022-04-16_07:16:27"
var commits = "26" var commits = "28"
var version = "d2e5b34-b26 - 2021-11-14_10:19:30" var version = "0083ab6-b28 - 2022-04-16_07:16:27"