dont backup datasets without mountpoint

This commit is contained in:
cronekorkn 2022-09-22 16:11:46 +02:00
parent 7a60ab1599
commit 5eb684e7ea
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw

View file

@ -99,6 +99,7 @@ def backup(metadata):
options['mountpoint'] options['mountpoint']
for options in metadata.get('zfs/datasets').values() for options in metadata.get('zfs/datasets').values()
if options.get('backup', True) if options.get('backup', True)
and not options.get('mountpoint', None) in [None, 'none']
}, },
}, },
} }