mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-04-11 22:40:01 +03:00
important bugfix: look at OUR snapshot instead of all snapshots when determining if we need a new snapshot
This commit is contained in:
parent
e1e6a87eba
commit
932ff7abe2
@ -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 ])
|
||||
|
Loading…
x
Reference in New Issue
Block a user