diff --git a/backup.sh b/backup.sh index f4ad6c8..aedbceb 100755 --- a/backup.sh +++ b/backup.sh @@ -3,8 +3,8 @@ nodes_file="nodes.txt" ### nodes.txt # -# -# +# +# # ... 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" }