From d9f36d1e8c4692cfdc9066afe2c7636f2fa9538b Mon Sep 17 00:00:00 2001 From: Otho Date: Mon, 16 Jan 2023 19:30:22 -0500 Subject: [PATCH] Fixed bug in remote snapshot capture. --- backup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" }