-
-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationsupportSupport RequestsSupport Requests
Description
Describe the bug
OffenBackup - search labels only on One node. For example Traefik (in swarm mode) search container (deploy) labels on all nodes
To Reproduce
Steps to reproduce the behavior:
- I have docker swarm cluster: 1 master (MASTER_1) and 2 workers (WORKER_1, WORKER_2).
- Run 3 different Postgres docker on all nodes (For three different projects).
- Want to backup all of them.
- For all Postgres docker add volume: - pg-backup-data:/tmp-backup
- For all Postgres docker add two labels (In service section, not in deploy section):
- "docker-volume-backup.archive-pre=/bin/sh -c 'pg_dump -U postgres postgres | gzip > /tmp-backup/pg_dump.sql.gz'"
- "docker-volume-backup.exec-label=BackupMain"
- On each node (MASTER_1, WORKER_1, WORKER_2) start offen-backup docker
- Mount volume: - pg-backup-data:/backup/pg-backup-data:ro
- Add labels for each offen-backup (MASTER_1, WORKER_1, WORKER_2)
- "docker-volume-backup.archive-post=/bin/sh -c 'backup'"
- "docker-volume-backup.exec-label=BackupMain"
- Start one more offen-backup on MASTER_1 = OffenBackupMain
- For OffenBackupMain mount: /var/run/docker.sock:/var/run/docker.sock
- For OffenBackupMain add env variable: EXEC_LABEL=BackupMain
- Go inside OffenBackupMain - docker exec -it ...
- Run command: backup
- See: backup only ONE postgres docker - on MASTER_1. Two others - not
Expected behavior
OffenBackup docker in swarm mode should search labels on all nodes
Version (please complete the following information):
- Image Version: v2.39.1
- Docker Version: 25.0.5
Additional context
No additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationsupportSupport RequestsSupport Requests