mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-27 22:25:24 +00:00
Handle exclude patterns
This commit is contained in:
@@ -68,7 +68,12 @@ class Container:
|
|||||||
filtered.append(mount)
|
filtered.append(mount)
|
||||||
|
|
||||||
elif self.exclude:
|
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:
|
else:
|
||||||
return self.mounts
|
return self.mounts
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user