Fixed bug in remote snapshot capture.

This commit is contained in:
Otho 2023-01-16 19:30:22 -05:00
parent cb2303dc62
commit d9f36d1e8c
Signed by: Otho
GPG Key ID: 16C720CD3BBE21D9

View File

@ -3,8 +3,8 @@
nodes_file="nodes.txt" nodes_file="nodes.txt"
### nodes.txt ### nodes.txt
# <origin host> <user> <ssh port> <timezone> <compressed flag> # <origin host> <user> <ssh port> <timezone> <compressed flag>
# <mirror 1 host> <user> <ssh port> <zfs root> # <mirror 1 host> <user> <ssh port> <zfs root> <send speed>
# <mirror 2 host> <user> <ssh port> <zfs root> # <mirror 2 host> <user> <ssh port> <zfs root> <send speed>
# ... # ...
datasets_file="datasets.txt" datasets_file="datasets.txt"
@ -104,7 +104,7 @@ get_latest_remote_snapshot()
esac esac
fi fi
ssh $SSH_SEND_OPTS -o port=$ssh_port $user@$addr \ ssh $SSH_SEND_OPTS -o port=$ssh_port $user@$addr \
"zfs list -t snapshot $zroot\$dataset | "zfs list -t snapshot $zroot$dataset |
tail -n1|cut -d'@' -f2|cut -d' ' -f 1" tail -n1|cut -d'@' -f2|cut -d' ' -f 1"
} }