wget https://raw.githubusercontent.com/tryweb/docker-compose/refs/heads/main/rclone/docker-compose.yml wget https://raw.githubusercontent.com/tryweb/docker-compose/refs/heads/main/rclone/.env.example wget https://raw.githubusercontent.com/tryweb/docker-compose/refs/heads/main/rclone/root_crontab mv .env.example .env
services: rclone-webui: image: rclone/rclone container_name: rclone-webui ports: - "5572:5572" environment: - RCLONE_RC_USER=${RCLONE_RC_USER} - RCLONE_RC_PASS=${RCLONE_RC_PASS} volumes: - ./rclone-config:/config/rclone #- /nas_Photos:/nas_Photos command: rcd --rc-web-gui --rc-addr 0.0.0.0:5572 rclone-cron: image: ghcr.io/tryweb/docker-compose/rclone-cron:latest container_name: rclone-cron environment: - TZ=Asia/Taipei - TITLE=${TITLE} - WEBHOOK_URL=${WEBHOOK_URL} volumes: - ./rclone-config:/root/.config/rclone - ./root_crontab:/etc/crontabs/root - ./cron-logs:/var/log/cron #- /nas_Photos:/nas_Photos
https://raw.githubusercontent.com/tryweb/docker-compose/refs/heads/main/rclone/docker-compose.yml
RCLONE_RC_USER=admin RCLONE_RC_PASS="MyPass_111" TITLE="RClone sync Google..." WEBHOOK_URL="https://discord.com/api/webhooks/1312345678901234568/WxFhpsy-hqwertyuiopasdfghjklpzxcvbnm123LNJ0kYFnC"
https://raw.githubusercontent.com/tryweb/docker-compose/refs/heads/main/rclone/.env.example
docker compose pull docker compose up -d
# cat rclone-config/rclone.conf [EverplastGoogle] type = drive client_id = 5100000070-hrhklfhjdfhsd1rfhs1.apps.googleusercontent.com client_secret = rTYxxxxxxxxxxxxxxxxxxxxd scope = drive.readonly token = {"access_token":"ya29.a0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxUeD449TBTsJIv9htJ6Q0178","token_type":"Bearer","refresh_token":"1//0eUHhK-CxxxxxxxxxxxxxxxxSNwF-W5CU","expiry":"2025-04-21T19:39:59.759797588+08:00"} root_folder_id = 0BxxxxxxxxxY-aFxxxxxxxxxxeVk [JonathanGooglePhotos] type = google photos client_id = 51xxxxxx70-hrxxxxxxxxxxxx1rfhs1.apps.googleusercontent.com client_secret = rTYxxxxxxxxxxxxxxxxxxxxxd read_only = true token = {"access_token":"ya29.a0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxQV-sS3xxxxxxxxxxxxxt3qsUjQwfitN7YMjLnBPw0178","token_type":"Bearer","refresh_token":"1//0efrxxxxxxxxL9IrJY0_EQNxxxxxxxxxxxxxxxxxxx3nd_2aTElCiZNxxxxxxmyxAfY","expiry":"2025-04-21T19:13:59.96375334+08:00"} [NAS145WorkDir] type = ftp host = 192.168.11.145 pass = flxxxxxx6-QDxxxxxxxxxx5tp_nTxxxxxg user = jonathan #
# rclone-job SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin * * * * * date >> /var/log/cron/test.log 2>&1 && send_logs_to_discord.sh TITLE="RClone Cron Test..." LOG_FILE="/var/log/cron/test.log" #20 17 * * * rclone copy --max-age 48h --no-traverse -v GooglePhotos:/media/by-year/ /nas_Photos/GooglePhotos/ > /var/log/cron/GooglePhotos.log 2>&1 && send_logs_to_discord.sh TITLE="RClone sync Google Photos..." LOG_FILE="/var/log/cron/GooglePhotos.log"
https://raw.githubusercontent.com/tryweb/docker-compose/refs/heads/main/rclone/root_crontab
: #* * * * * date >> /var/log/cron/test.log 2>&1 && send_logs_to_discord.sh TITLE="RClone Cron Test..." LOG_FILE="/var/log/cron/test.log" :
: 20 17 * * * rclone copy --max-age 48h --no-traverse -v JonathanGooglePhotos:/media/by-year/ /nas_Photos/GooglePhotos/ > /var/log/cron/GooglePhotos.log 2>&1 && send_logs_to_discord.sh TITLE="RClone sync Google Photos..." LOG_FILE="/var/log/cron/GooglePhotos.log"
docker compose restart rclone-cron
# docker compose restart rclone-cron [+] Restarting 1/1 ✔ Container rclone-cron Started #