Skip to content

Backup a file or directory to mega.nz every day at a specific time.

License

Notifications You must be signed in to change notification settings

ejach/mega_scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mega_scheduler

Docker

Backup a file or directory to mega.nz every day at a specific time.

Environment

EMAIL=xxx
PASSWORD=xxx
TARGET_DIR=/path/to/dir
BACKUP_TIME=04:00
DAY_RETENTION=7
SCRIPT_MODE=True or False # Default is False

docker-compose.yml

  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