From 83834c657056208c807893f4260dbee557d189f5 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Fri, 10 Nov 2023 21:53:34 +0000 Subject: [PATCH] Whoops fix Mounts path --- backupbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backupbot.py b/backupbot.py index 3df0562..0677107 100755 --- a/backupbot.py +++ b/backupbot.py @@ -85,7 +85,7 @@ def get_backup_cmds(): services = client.services.list() for s in services: labels = s.attrs['Spec']['Labels'] - mounts = s.attrs['Spec']['Mounts'] + mounts = s.attrs['Spec']['TaskTemplate']['ContainerSpec']['Mounts'] if (backup := labels.get('backupbot.backup')) and bool(backup): stack_name = labels['com.docker.stack.namespace'] # Remove this lines to backup only a specific service