diff --git a/app.go b/app.go index 458eb31..60f8df5 100644 --- a/app.go +++ b/app.go @@ -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)) } 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) { sCurrSnapshot = sNextSnapshot sNextSnapshot, err = cfg.Box[src.Box()].ssh.getNextSnapshot(sNextSnapshot)