Backup a file or directory to mega.nz every day at a specific time.
EMAIL=xxx
PASSWORD=xxx
TARGET_DIR=/path/to/dir
BACKUP_TIME=04:00
DAY_RETENTION=7
SCRIPT_MODE=True or False # Default is False
mega_scheduler:
image: ghcr.io/ejach/mega_scheduler:latest
container_name: mega_scheduler
environment:
- EMAIL=${EMAIL}
- PASSWORD=${PASSWORD}
- TARGET_DIR=${TARGET_DIR}
- BACKUP_TIME=${BACKUP_TIME}
- DAY_RETENTION=${DAY_RETENTION}
- SCRIPT_MODE=${True or False}
volumes:
- ${TARGET_DIR}:/${TARGET_DIR}
restart: unless-stopped