fix path
This commit is contained in:
parent
08dce5e04d
commit
2bf1227ee6
2
app.go
2
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))
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user