diff --git a/restic_volume_backup/containers.py b/restic_volume_backup/containers.py index 4d2d86d..6a92b7d 100644 --- a/restic_volume_backup/containers.py +++ b/restic_volume_backup/containers.py @@ -68,7 +68,12 @@ class Container: filtered.append(mount) elif self.exclude: - pass + for mount in self.mounts: + for pattern in self.exclude: + if pattern in mount.source: + break + else: + filtered.append(mount) else: return self.mounts