From dd301dc4224c0b01dbb2f457f6c00a21fa18c31d Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Tue, 21 Apr 2020 17:59:18 +0200 Subject: [PATCH] bugfix --- bin/zfs-autobackup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/zfs-autobackup b/bin/zfs-autobackup index 43cfa21..2d7240d 100755 --- a/bin/zfs-autobackup +++ b/bin/zfs-autobackup @@ -1236,10 +1236,10 @@ class ZfsDataset(): # we may now destroy the previous source snapshot if its obsolete if prev_source_snapshot in source_obsoletes: - prev_source_snapshot.destroy() + prev_source_snapshot.destroy() # destroy the previous target snapshot if obsolete (usually this is only the common_snapshot, the rest was already destroyed or will not be send) - prev_target_snapshot=target_dataset.find_snapshot(common_snapshot) + prev_target_snapshot=target_dataset.find_snapshot(prev_source_snapshot) if prev_target_snapshot in target_obsoletes: prev_target_snapshot.destroy()