From d80a636b12e8d70a57b8c73fdd30d63bfae72882 Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Mon, 28 Oct 2019 13:25:21 +0100 Subject: [PATCH] wip --- zfs_autobackup | 62 ++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 50 insertions(+), 12 deletions(-) diff --git a/zfs_autobackup b/zfs_autobackup index f410ca5..7161299 100755 --- a/zfs_autobackup +++ b/zfs_autobackup @@ -570,8 +570,8 @@ class ZfsDataset(): raise(Exception("Please call this on a dataset.")) try: - index=self.our_snapshots.index(snapshot) - if index>0: + index=self.find_our_snapshot_index(snapshot) + if index!=None and index>0: return(self.our_snapshots[index-1]) else: return(None) @@ -586,8 +586,8 @@ class ZfsDataset(): raise(Exception("Please call this on a dataset.")) try: - index=self.our_snapshots.index(snapshot) - if index>=0 and index=0 and index