mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-24 22:15:07 +00:00
Fixed bug in remote snapshot capture.
This commit is contained in:
parent
cb2303dc62
commit
d9f36d1e8c
@ -3,8 +3,8 @@
|
||||
nodes_file="nodes.txt"
|
||||
### nodes.txt
|
||||
# <origin host> <user> <ssh port> <timezone> <compressed flag>
|
||||
# <mirror 1 host> <user> <ssh port> <zfs root>
|
||||
# <mirror 2 host> <user> <ssh port> <zfs root>
|
||||
# <mirror 1 host> <user> <ssh port> <zfs root> <send speed>
|
||||
# <mirror 2 host> <user> <ssh port> <zfs root> <send speed>
|
||||
# ...
|
||||
|
||||
datasets_file="datasets.txt"
|
||||
@ -104,7 +104,7 @@ get_latest_remote_snapshot()
|
||||
esac
|
||||
fi
|
||||
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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user