From 932ff7abe26921388ea7f7a5705b6143a73ee15a Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Fri, 7 Feb 2020 19:55:16 +0100 Subject: [PATCH] important bugfix: look at OUR snapshot instead of all snapshots when determining if we need a new snapshot --- bin/zfs_autobackup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/zfs_autobackup b/bin/zfs_autobackup index d55c7b9..4bca99b 100755 --- a/bin/zfs_autobackup +++ b/bin/zfs_autobackup @@ -791,7 +791,7 @@ class ZfsDataset(): if not self.our_snapshots: return(True) - latest_snapshot=self.snapshots[-1] + latest_snapshot=self.our_snapshots[-1] cmd=[ "zfs", "get","-H" ,"-ovalue", "-p", "written@"+str(latest_snapshot), self.name ] output=self.zfs_node.run(readonly=True, tab_split=False, cmd=cmd, valid_exitcodes=[ 0 ])