From 15a095235594d32c7edbb9c572d9c41cb832cf09 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Wed, 17 Apr 2019 19:15:58 +0200 Subject: [PATCH] Don't allow oneoff containers --- restic_volume_backup/containers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restic_volume_backup/containers.py b/restic_volume_backup/containers.py index 09aa501..11f5668 100644 --- a/restic_volume_backup/containers.py +++ b/restic_volume_backup/containers.py @@ -184,7 +184,7 @@ class RunningContainers: self.backup_process_container = container # Detect containers beloging to the current compose setup - if container.project_name == self.this_container.project_name: + if container.project_name == self.this_container.project_name and not container.is_oneoff: if container.id != self.this_container.id: self.containers.append(container)