-
-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When running manually docker compose exec backup backup everything works correctly. However when running normaly (foreground mode) and therefor triggered by cron the SSH connection is not closed. Having many backup images for multiple docker-compose stacks I am having a lots of SSH connection kept open. (Hosting provider complained)
To Reproduce
Need help to debug as it works in manual mode. Log message in both cases are the same.
Version (please complete the following information):
- Image Version: v2.46.0
- Docker Version: 28.4.0
- Docker Compose Version (if applicable): v2.39.4
Additional context
backup:
image: offen/docker-volume-backup:v2
environment:
EXEC_LABEL: affine
EXEC_FORWARD_OUTPUT: true
BACKUP_SOURCES: /backups
BACKUP_STOP_DURING_BACKUP_LABEL: affine
BACKUP_RETENTION_DAYS: '5'
BACKUP_CRON_EXPRESSION: '15 2 * * *'
SSH_HOST_NAME: rle.ftp.example.com
SSH_REMOTE_PATH: /home/custom_backups/affine
SSH_USER: rle_backups
SSH_PASSWORD: ${BACKUP_SSH_PASSWORD}
NOTIFICATION_URLS: ${BACKUP_NOTIFICATION_URLS}
volumes:
- backup_cache:/backups/db
- ${UPLOAD_LOCATION}:/backups/storage
- ${CONFIG_LOCATION}:/backups/config
- /var/run/docker.sock:/var/run/docker.sock:ro
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working