From 92c6d3368c99b00a0be2d3b4851017ee843f3851 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Fri, 6 Jun 2014 10:22:45 +0200 Subject: [PATCH] zb-pull: fix snapshot naming --- zb-pull | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zb-pull b/zb-pull index ca41093..32e6801 100755 --- a/zb-pull +++ b/zb-pull @@ -26,8 +26,8 @@ ssh $ssh_remote "zfs list -t snapshot -r -d 1 -H \"${remote_zfs}\" " | awk '{pri unixtime=`timestamp "$l"` || continue echo "$unixtime" "$l" done | sort -n | while read l ; do - curtime=${l%% *} - snapname=${l#* } + fullname=${l#* } + snapname=${fullname#*@zb-} newest="$snapname"