transfer blocked by wrong comparison
This commit is contained in:
parent
0e0e5db303
commit
f94f9b9f71
2
box.go
2
box.go
@ -188,7 +188,7 @@ func TransferZfs(from, to Addr) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if fromSnapshots[fromFromSnapshotId].name != lastToSnapshot.name {
|
||||
if fromFromSnapshotId < len(fromSnapshots)-1 {
|
||||
log.WithFields(log.Fields{"from": from, "to": to}).Debugf("transfering from %s to %s", fromSnapshots[fromFromSnapshotId].name, fromSnapshots[len(fromSnapshots)-1].name)
|
||||
|
||||
if _, err := to.BoxExec("ssh " + from.Box() + " zfs send -I " + fromSnapshots[fromFromSnapshotId].String() + " " + fromSnapshots[len(fromSnapshots)-1].String() + " | zfs recv -F " + to.Path()); err != nil {
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||
package main
|
||||
var githash = "3c785de"
|
||||
var githash = "0e0e5db"
|
||||
var branch = "v2"
|
||||
var buildstamp = "2023-06-29_21:24:17"
|
||||
var commits = "58"
|
||||
var version = "3c785de-b58 - 2023-06-29_21:24:17"
|
||||
var buildstamp = "2023-06-29_21:36:34"
|
||||
var commits = "59"
|
||||
var version = "0e0e5db-b59 - 2023-06-29_21:36:34"
|
||||
|
Loading…
Reference in New Issue
Block a user