diff --git a/backup.sh b/backup.sh index df1618e..6b4cc60 100755 --- a/backup.sh +++ b/backup.sh @@ -162,7 +162,7 @@ get_latest_remote_snapshot() *) zroot="$zroot/" ;; esac fi - list_cmd="zfs list -t snapshot $dset" + list_cmd="zfs list -t snapshot $rset" remote_cmd="$list_cmd|tail -n1|cut -d'@' -f2|cut -d' ' -f 1" run_remote }