cleanup only when source is up
This commit is contained in:
parent
28bae81236
commit
23d7d90d20
6
app.go
6
app.go
@ -681,8 +681,10 @@ func (a AppConfig) CleanupSnapshot() error {
|
||||
for _, dest := range a.Destinations {
|
||||
if cfg.Box[dest.Box()].online {
|
||||
for _, src := range a.Sources {
|
||||
cleanupSnapshot[src.Box()] = cleanupSnapshot[src.Box()] + " " + src.Path()
|
||||
cleanupSnapshot[dest.Box()] = cleanupSnapshot[dest.Box()] + " " + dest.Path() + "/" + src.Box() + "/" + src.Path()
|
||||
if cfg.Box[src.Box()].online {
|
||||
cleanupSnapshot[src.Box()] = cleanupSnapshot[src.Box()] + " " + src.Path()
|
||||
cleanupSnapshot[dest.Box()] = cleanupSnapshot[dest.Box()] + " " + dest.Path() + "/" + src.Box() + "/" + src.Path()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||
package main
|
||||
var githash = "93169ff"
|
||||
var buildstamp = "2022-06-17_13:57:23"
|
||||
var commits = "38"
|
||||
var version = "93169ff-b38 - 2022-06-17_13:57:23"
|
||||
var githash = "28bae81"
|
||||
var buildstamp = "2022-06-17_14:02:53"
|
||||
var commits = "39"
|
||||
var version = "28bae81-b39 - 2022-06-17_14:02:53"
|
||||
|
Loading…
Reference in New Issue
Block a user