From e7bd567acb1aed210f7d36cd9933460cab080da2 Mon Sep 17 00:00:00 2001 From: Andrew DeMaria Date: Mon, 10 Sep 2018 22:14:05 -0400 Subject: [PATCH] Do not monitor snapshots types that are set to 0. Signed-off-by: Andrew DeMaria --- sanoid | 1 + 1 file changed, 1 insertion(+) diff --git a/sanoid b/sanoid index 7ae1b5b..aa6369d 100755 --- a/sanoid +++ b/sanoid @@ -127,6 +127,7 @@ sub monitor_snapshots { my @types = ('yearly','monthly','daily','hourly'); foreach my $type (@types) { + if ($config{$section}{$type} == 0) { next; } my $smallerperiod = 0; # we need to set the period length in seconds first