mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2026-11-17 02:25:41 +00:00
Handle exclude patterns
This commit is contained in:
1 parent
ae2b1c3fc2
commit
9397a87655
1 file changed
+6
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user