mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-04-13 22:47:12 +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:
|
if not self.our_snapshots:
|
||||||
return(True)
|
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 ]
|
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 ])
|
output=self.zfs_node.run(readonly=True, tab_split=False, cmd=cmd, valid_exitcodes=[ 0 ])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user