This commit is contained in:
shoopea 2021-10-18 22:37:43 +08:00
parent 08dce5e04d
commit 2bf1227ee6

2
app.go
View File

@ -563,7 +563,7 @@ func (a AppConfig) SendSnapshots() error {
log.Printf("AppConfig.SendSnapshots : %s : Last snapshot on %s is %s", a.Name, dest.Box(), string(dLastSnapshot)) log.Printf("AppConfig.SendSnapshots : %s : Last snapshot on %s is %s", a.Name, dest.Box(), string(dLastSnapshot))
} }
var sCurrSnapshot Snapshot var sCurrSnapshot Snapshot
sNextSnapshot := Snapshot(string(dLastSnapshot)[len(string(dest))+1:]) sNextSnapshot := Snapshot(string(dLastSnapshot)[len(dest.Path())+len(src.Box())+2:])
for !cfg.Box[src.Box()].ssh.isLastSnapshot(sNextSnapshot) { for !cfg.Box[src.Box()].ssh.isLastSnapshot(sNextSnapshot) {
sCurrSnapshot = sNextSnapshot sCurrSnapshot = sNextSnapshot
sNextSnapshot, err = cfg.Box[src.Box()].ssh.getNextSnapshot(sNextSnapshot) sNextSnapshot, err = cfg.Box[src.Box()].ssh.getNextSnapshot(sNextSnapshot)