From 510becee2f5c35e23c53d42d19fee2856c9b0682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn?= Date: Tue, 17 Jun 2025 13:32:59 +0200 Subject: [PATCH] get snpshots from list of datasets query the existing snapshots only from the configured datasets to avoud spinning up disks that are not in the config --- sanoid | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sanoid b/sanoid index 4a71319..aae3b5f 100755 --- a/sanoid +++ b/sanoid @@ -883,7 +883,8 @@ sub getsnaps { print "INFO: cache expired - updating from zfs list.\n"; } } - open FH, "$zfs get -Hrpt snapshot creation |"; + # just get snapshots from configured datasets to not spin up the disks + open FH, "$zfs get -Hrpt snapshot creation ".join(" ",keys %$config)." |"; @rawsnaps = ; close FH;