Dockerized Mega sync utility built on MEGAcmd.
Run the container with your MEGA account credentials to sync files or execute commands:
docker run --name=mega-sync \
-e USERNAME="[email protected]" \
-e PASSWORD="your-mega-password" \
-e PUID=1000 \
-e PGID=1000 \
-v /path/to/host:/data \
j3ko/mega-sync:latest
This will continually sync /path/to/host
to the root of your mega account.
docker run --name=mega-sync \
-e USERNAME="[email protected]" \
-e PASSWORD="your-mega-password" \
-e PUID=1000 \
-e PGID=1000 \
-e MEGA_PATH=/path/in/mega \
-v /path/to/host:/data \
j3ko/mega-sync:latest
This will sync /path/to/host
to /path/in/mega
.
Parameter | Description | Default Value | Required/Optional |
---|---|---|---|
USERNAME |
Your MEGA email address | None | Required |
PASSWORD |
Your MEGA password | None | Required |
SESSION |
Existing MEGA session token | None | Optional |
PUID |
User ID for the container | 0 | Optional |
PGID |
Group ID for the container | 0 | Optional |
MEGA_PATH |
Specific path in your MEGA account | / |
Optional |
For bugs and issues, please create a GitHub issue here.