From 5eb684e7ea0dfd859b0e73403cd7152b50ecf3f2 Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Thu, 22 Sep 2022 16:11:46 +0200 Subject: [PATCH] dont backup datasets without mountpoint --- bundles/zfs/metadata.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/zfs/metadata.py b/bundles/zfs/metadata.py index c2102f6..a2f485d 100644 --- a/bundles/zfs/metadata.py +++ b/bundles/zfs/metadata.py @@ -99,6 +99,7 @@ def backup(metadata): options['mountpoint'] for options in metadata.get('zfs/datasets').values() if options.get('backup', True) + and not options.get('mountpoint', None) in [None, 'none'] }, }, }